Fix array name: config -> settings

This commit is contained in:
Balázs Indig 2013-12-11 19:19:48 +01:00
parent 2869ef13a6
commit 3e6f976ef1

View file

@ -34,7 +34,7 @@ class Pico {
// Get our url path and trim the / of the left and the right
if($request_url != $script_url) $url = trim(preg_replace('/'. str_replace('/', '\/', str_replace('index.php', '', $script_url)) .'/', '', $request_url, 1), '/');
if (!$config['mod_rewrite']) $repl_str = '/^\?/';
if (!$settings['mod_rewrite']) $repl_str = '/^\?/';
else $repl_str = '/\?.*/';
$url = preg_replace($repl_str, '', $url); // Strip query string
$this->run_hooks('request_url', array(&$url));