Skip to content
Browse files

[mobile] Fixes based on functional testing

- lib_dir must end with a slash
- some values are returned as arrays
  • Loading branch information...
1 parent cbf199a commit 7699c6bb24fa169496ae4a20be74852b27dc5cb3 @weierophinney committed Oct 18, 2010
View
2 mobile-app/application/configs/application.ini
@@ -9,7 +9,7 @@ resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.useragent.wurflapi.wurfl_api_version = "1.1"
-resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.1/WURFL"
+resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.1/WURFL/"
resources.useragent.wurflapi.wurfl_config_file = APPLICATION_PATH "/configs/wurfl-config.php"
[staging : production]
View
8 mobile-app/application/views/scripts/mobile/details.phtml
@@ -2,7 +2,13 @@
<dl>
<?php foreach ($this->device->getAllFeatures() as $feature => $value): ?>
<dt><?php echo $this->escape($feature) ?></dt>
- <dd><?php echo $this->escape($value) ?></dd>
+ <dd><?php
+ if (is_string($value)) {
+ echo $this->escape($value);
+ } else {
+ echo '<pre>' . var_export($value, true) . '</pre>';
+ } ?>
+ </dd>
<?php endforeach ?>
</dl>
View
2 mobile-app/docs/README.txt
@@ -51,5 +51,5 @@ WURFL PHP API:
* Update your application/configs/application.ini to add the following
lines to the "[production]" section:
resources.useragent.wurflapi.wurfl_api_version = "1.1"
- resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.1/WURFL"
+ resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.1/WURFL/"
resources.useragent.wurflapi.wurfl_config_file = APPLICATION_PATH "/configs/wurfl-config.php"

0 comments on commit 7699c6b

Please sign in to comment.
Something went wrong with that request. Please try again.