*More r22450 cleanup, don't add &action=edit to broken links for special pages
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 26 May 2007 17:06:48 +0000 (17:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 26 May 2007 17:06:48 +0000 (17:06 +0000)
includes/Linker.php

index 7c3e09e..1cb40db 100644 (file)
@@ -331,7 +331,9 @@ class Linker {
                $fname = 'Linker::makeBrokenLinkObj';
                wfProfileIn( $fname );
 
-               if ( '' == $query ) {
+               if( $nt->getNamespace() == NS_SPECIAL ) {
+                       $q = $query;
+               } else if ( '' == $query ) {
                        $q = 'action=edit';
                } else {
                        $q = 'action=edit&'.$query;