Browse Source

Fix array name: config -> settings

Balázs Indig 11 năm trước cách đây
mục cha
commit
3e6f976ef1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/pico.php

+ 1 - 1
lib/pico.php

@@ -34,7 +34,7 @@ class Pico {
 
 
 		// Get our url path and trim the / of the left and the right
 		// 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($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 = '/\?.*/';
 		else $repl_str = '/\?.*/';
 		$url = preg_replace($repl_str, '', $url); // Strip query string
 		$url = preg_replace($repl_str, '', $url); // Strip query string
 		$this->run_hooks('request_url', array(&$url));
 		$this->run_hooks('request_url', array(&$url));