From: Alexandre Emsenhuber Date: Fri, 2 Oct 2009 18:27:20 +0000 (+0000) Subject: * (bug 20948) "Create this page" on Special:Search is no longer displayed when search... X-Git-Tag: 1.31.0-rc.0~39408 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=ba1606d594de9cb2ec12426cdfd8e06f96a79d9d;p=lhc%2Fweb%2Fwiklou.git * (bug 20948) "Create this page" on Special:Search is no longer displayed when searching for special pages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9811163fa8..c8a71ef035 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 7f26b5beb6..fce4b5f0fb 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -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() ) );