diff options
author | Raimond Spekking <raymond@users.mediawiki.org> | 2011-12-13 10:47:31 +0000 |
---|---|---|
committer | Raimond Spekking <raymond@users.mediawiki.org> | 2011-12-13 10:47:31 +0000 |
commit | 3ad16ebc9e463175132603470c6c9d7272f2af3c (patch) | |
tree | 543866361430a1bd8c6d159a3325c97cf4e7262a | |
parent | 26bc23556003f7482796d616fd26deda1669e73b (diff) | |
download | mediawikicore-3ad16ebc9e463175132603470c6c9d7272f2af3c.tar.gz mediawikicore-3ad16ebc9e463175132603470c6c9d7272f2af3c.zip |
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
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106008
-rw-r--r-- | includes/specials/SpecialSearch.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 022744f0a916..c2fac94b1728 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 "<li>{$link}</li>\n"; } |