Needs work
Project:
WURFL
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2010 at 18:39 UTC
Updated:
26 Sep 2010 at 15:07 UTC
It should really be checking for wurfl-config.xml, then parsing where to check for the "main-file" attribute of that config file, since it can be a zip file or have any name at all (the WURFL PHP API comes with a main-file called "wurfl-regression.zip").
I'm not sure if this error is present in the 2.x version.
As a separate, but related, issue:
The cache folder is also defined in the wurfl-config.xml file, but for some reason, it's hard coded that the wurfl_settings function check at ""$library/cache", which doesn't correspond to the example resources dir provided by the WURFL PHP API (which has the cache folder INSIDE the resources folder).
Comments
Comment #1
twom commentedHi,
Thanks for the remarks. The module indeed can be more generic... And parsing the wurfl file seems like a good idea. This will be for a next big release.
In fact the whole configuration could be created programmatically instead of using the wurfl-config file.
Any patches are highly appreciated!