* (bug 20948) "Create this page" on Special:Search is no longer displayed when search...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 2 Oct 2009 18:27:20 +0000 (18:27 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 2 Oct 2009 18:27:20 +0000 (18:27 +0000)
RELEASE-NOTES
includes/specials/SpecialSearch.php

index 9811163..c8a71ef 100644 (file)
@@ -536,6 +536,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   if $wgHtml5=false.
 * (bug 20836) Preload now works for MediaWiki namespace
 * (bug 20885) Search box no longer suggests unavailable special pages
+* (bug 20948) "Create this page" on Special:Search is no longer displayed when
+  searching for special pages
 
 == API changes in 1.16 ==
 
index 7f26b5b..fce4b5f 100644 (file)
@@ -321,7 +321,7 @@ class SpecialSearch {
                
                // show direct page/create link
                if( !is_null($t) ) {
-                       if( !$t->exists() ) {
+                       if( !$t->isKnown() ) {
                                $wgOut->addWikiMsg( 'searchmenu-new', wfEscapeWikiText( $t->getPrefixedText() ) );
                        } else {
                                $wgOut->addWikiMsg( 'searchmenu-exists', wfEscapeWikiText( $t->getPrefixedText() ) );