Permalink
Browse files

fix(cli): Rewrite `::installDir()` to `Directory\Local::root()` in CL…

…I server

This was causing a fatal error. It should be runnable again after this change.
  • Loading branch information...
ewinslow committed Aug 15, 2015
1 parent eb5837b commit 1e1f446b76ef976c35c8c0d4edb4b69a06e531f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 engine/classes/Elgg/Application.php
@@ -382,7 +382,7 @@ public function run() {
if (php_sapi_name() === 'cli-server') {
// The CLI server routes ALL requests here (even existing files), so we have to check for these.
if ($path !== '/' && self::installDir()->isFile($path)) {
if ($path !== '/' && Directory\Local::root()->isFile($path)) {
// serve the requested resource as-is.
return false;
}

0 comments on commit 1e1f446

Please sign in to comment.