From 3ad16ebc9e463175132603470c6c9d7272f2af3c Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 13 Dec 2011 10:47:31 +0000 Subject: [PATCH] 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 --- includes/specials/SpecialSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 2.20.1