Remove cli-server exception since we now have compatibility with a custom router https://github.com/getgrav/grav/pull/1219

This commit is contained in:
Flavio Copes
2016-12-17 15:11:12 +01:00
parent d77a57cfa5
commit 508887e3e2
2 changed files with 1 additions and 5 deletions

View File

@@ -299,11 +299,6 @@ class AdminPlugin extends Plugin
$this->grav['twig']->setAutoescape(true);
}
if (php_sapi_name() == 'cli-server') {
throw new \RuntimeException('The Admin Plugin cannot run on the PHP built-in webserver. It needs Apache, Nginx or another full-featured web server.',
500);
}
$this->grav['debugger']->addMessage("Admin Basic");
$this->initializeAdmin();