fix warning in local mode
This commit is contained in:
parent
4dead6837f
commit
54da35f5db
2 changed files with 8 additions and 1 deletions
|
@ -4,4 +4,11 @@
|
||||||
<directory suffix="test.php">../ext/</directory>
|
<directory suffix="test.php">../ext/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory suffix=".php">core</directory>
|
||||||
|
<directory suffix=".php">ext</directory>
|
||||||
|
<directory suffix=".php">themes/default</directory>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
@ -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)
|
// all other requests (use shimmie routing based on URL)
|
||||||
$_SERVER["PHP_SELF"] = '/';
|
$_SERVER["PHP_SELF"] = '/index.php';
|
||||||
$_GET['q'] = explode("?", $_SERVER["REQUEST_URI"])[0];
|
$_GET['q'] = explode("?", $_SERVER["REQUEST_URI"])[0];
|
||||||
error_log($_GET['q']);
|
error_log($_GET['q']);
|
||||||
require_once "index.php";
|
require_once "index.php";
|
||||||
|
|
Reference in a new issue