From dbe2517725b256918161e3f1790a20f0b0d12157 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 26 May 2007 17:06:48 +0000 Subject: [PATCH] *More r22450 cleanup, don't add &action=edit to broken links for special pages --- includes/Linker.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1