Closed (fixed)
Project:
Mobile Tools
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2009 at 22:47 UTC
Updated:
16 Dec 2009 at 00:58 UTC
The function in mobile_tools.module on or around line 600 is built only for PHP5. Is this by design? I would like to use this for PHP4 but cannot. The specific code with the problem is the "array_combine" statement, which is a PHP5 only command. Here is the code:
if (count($list) == 0) {
return array();
}
else {
return array_combine($list, $list);
}
}
I've tried some PHP4 replacements, but the corresponding page in Home › Administer › Site configuration › Mobile Tools comes up with "You must enable themes in order to use theme switching" with no place to enable it and no themes to choose.
Comments
Comment #1
grantmo commentedJust an update. I did change my site and now have PHP5. The theme page works fine now with PHP5.
Original problem was strictly a PHP 4 problem. I was using PHP 4.4.9
Comment #2
twom commentedHi,
I think that I will not fix this and recommend everybody to upgrade to PHP 5 (something you better do, no matter what ;))
If a lot of people have this problem, I can open it again.