Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -546,7 +546,7 @@ |
547 | 547 | //If page content is not readable, just return the title. |
548 | 548 | //This is not quite safe, but better than showing excerpts from non-readable pages |
549 | 549 | //Note that hiding the entry entirely would screw up paging. |
550 | | - if( !$t->userCanRead() ) { |
| 550 | + if( !$t->userCan( 'read' ) ) { |
551 | 551 | wfProfileOut( __METHOD__ ); |
552 | 552 | return "<li>{$link}</li>\n"; |
553 | 553 | } |