Pārlūkot izejas kodu

Fix array name: config -> settings

Balázs Indig 11 gadi atpakaļ
vecāks
revīzija
3e6f976ef1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 		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));