fix warning in local mode

This commit is contained in:
Shish 2017-09-22 19:09:07 +01:00
parent 4dead6837f
commit 54da35f5db
2 changed files with 8 additions and 1 deletions

View file

@ -4,4 +4,11 @@
<directory suffix="test.php">../ext/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">core</directory>
<directory suffix=".php">ext</directory>
<directory suffix=".php">themes/default</directory>
</whitelist>
</filter>
</phpunit>

View file

@ -17,7 +17,7 @@ if(preg_match('/\.(?:png|jpg|jpeg|gif|css|js|php)(\?.*)?$/', $_SERVER["REQUEST_U
}
// all other requests (use shimmie routing based on URL)
$_SERVER["PHP_SELF"] = '/';
$_SERVER["PHP_SELF"] = '/index.php';
$_GET['q'] = explode("?", $_SERVER["REQUEST_URI"])[0];
error_log($_GET['q']);
require_once "index.php";