Permalink
Browse files

Fixing reading static path for PHP install (hopefully last PHP support)

  • Loading branch information...
1 parent f888b27 commit 2e7db2bd01a553612956576d8c6a687ae7d0488d @remy remy committed Jul 5, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 php/config.php
  2. +1 −0 php/index.php
View
@@ -41,6 +41,7 @@ function merge_config($arr1, $arr2) {
// The full url to the root page of the app.
define('ROOT', ($url['ssl'] ? 'https' : 'http') . '://' . HOST . preg_replace('/\/$/', '', PATH));
+define('STATIC_URL', (isset($url['static']) && $url['static'] !== false) ? $url['static'] : ROOT);
// wishing PHP were more like JavaScript...wishing I was able to use Node.js they way I had wanted...
define('VERSION', !IS_PRODUCTION ? 'debug' : $package['version']);
View
@@ -45,6 +45,7 @@
echo $mustache->render($view, array(
'token' => $csrf,
'root' => ROOT,
+ 'static' => STATIC_URL,
'scripts' => $scripts,
'version' => VERSION,
'home' => $home,

0 comments on commit 2e7db2b

Please sign in to comment.