From: Aaron Schulz Date: Sat, 26 May 2007 17:06:48 +0000 (+0000) Subject: *More r22450 cleanup, don't add &action=edit to broken links for special pages X-Git-Tag: 1.31.0-rc.0~52799 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=dbe2517725b256918161e3f1790a20f0b0d12157;p=lhc%2Fweb%2Fwiklou.git *More r22450 cleanup, don't add &action=edit to broken links for special pages --- diff --git a/includes/Linker.php b/includes/Linker.php index 7c3e09e0f5..1cb40db1e4 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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;