# HG changeset patch # User Dan # Date 1280519363 14400 # Node ID 9a4b0c3056ac09b6e98f6706c5fe37b6a30dea58 # Parent 4264ace0855fc338c9a2d04bdcf7bb9e57cab34a Fixed redlinks to special pages + parameters diff -r 4264ace0855f -r 9a4b0c3056ac includes/namespaces/special.php --- a/includes/namespaces/special.php Fri Jul 30 15:49:11 2010 -0400 +++ b/includes/namespaces/special.php Fri Jul 30 15:49:23 2010 -0400 @@ -31,7 +31,11 @@ global $db, $session, $paths, $template, $plugins; // Common objects global $lang; - $this->exists = function_exists("page_{$this->namespace}_{$this->page_id}"); + if ( strstr($this->page_id, '/') ) + list($base_page_id) = explode('/', $this->page_id); + else + $base_page_id = $this->page_id; + $this->exists = function_exists("page_{$this->namespace}_{$base_page_id}"); if ( isset($paths->pages[ $paths->get_pathskey($this->page_id, $this->namespace) ]) ) { @@ -57,7 +61,7 @@ 'delvotes' => 0, 'delvote_ips' => '', 'wiki_mode' => 2, - 'page_exists' => false, + 'page_exists' => $this->exists, 'page_format' => getConfig('default_page_format', 'wikitext') ); $this->cdata = Namespace_Default::bake_cdata($this->cdata);