diff --git a/fp-plugins/prettyurls/plugin.prettyurls.php b/fp-plugins/prettyurls/plugin.prettyurls.php index 301f94d..4000f10 100644 --- a/fp-plugins/prettyurls/plugin.prettyurls.php +++ b/fp-plugins/prettyurls/plugin.prettyurls.php @@ -298,7 +298,7 @@ class Plugin_PrettyURLs { // static page $url = preg_replace_callback('|^/([a-zA-Z0-9_-]+)/$|', array(&$this, 'handle_static'), $url); if ($this->status == 2) - return; + return $this->check_url($url); } @@ -307,7 +307,7 @@ class Plugin_PrettyURLs { $url = preg_replace_callback('|page/([0-9]+)/$|', array(&$this, 'handle_page'), $url); if ($this->status == 2) - return; + return $this->check_url($url); if ($this->date_handled){ $url = preg_replace_callback('|^/([^/]+)|', array(&$this, 'handle_entry'), $url); @@ -322,10 +322,14 @@ class Plugin_PrettyURLs { $url = preg_replace_callback('|^/feed(/([^/]*))?|', array(&$this, 'handle_feed'), $url); - + $this->check_url($url); } + function check_url($url) { + if ($url != '/') + $this->fp_params = array('entry'=>'entry000000-000000'); + } function cache_delete_elem($id, $date) { @@ -555,4 +559,4 @@ STR; } -?> +?> \ No newline at end of file