From: Raimond Spekking Date: Tue, 13 Dec 2011 10:47:31 +0000 (+0000) Subject: Fix PHP Notice: Use of Title::userCanRead was deprecated in MediaWiki 1.19. [Called... X-Git-Tag: 1.31.0-rc.0~26009 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=3ad16ebc9e463175132603470c6c9d7272f2af3c;p=lhc%2Fweb%2Fwiklou.git Fix PHP Notice: Use of Title::userCanRead was deprecated in MediaWiki 1.19. [Called from SpecialSearch::showHit in /www/w/includes/specials/SpecialSearch.php at line 549] in /www/w/includes/GlobalFunctions.php on line 3520 in consequence of r105985 --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 022744f0a9..c2fac94b17 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -546,7 +546,7 @@ class SpecialSearch extends SpecialPage { //If page content is not readable, just return the title. //This is not quite safe, but better than showing excerpts from non-readable pages //Note that hiding the entry entirely would screw up paging. - if( !$t->userCanRead() ) { + if( !$t->userCan( 'read' ) ) { wfProfileOut( __METHOD__ ); return "
  • {$link}
  • \n"; }