Skip to content

Commit

Permalink
Fixing reading static path for PHP install (hopefully last PHP support)
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Jul 5, 2012
1 parent f888b27 commit 2e7db2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions php/config.php
Expand Up @@ -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']);
Expand Down
1 change: 1 addition & 0 deletions php/index.php
Expand Up @@ -45,6 +45,7 @@
echo $mustache->render($view, array(
'token' => $csrf,
'root' => ROOT,
'static' => STATIC_URL,
'scripts' => $scripts,
'version' => VERSION,
'home' => $home,
Expand Down

0 comments on commit 2e7db2b

Please sign in to comment.