Index: trunk/extensions/TitleBlacklist/TitleBlacklist.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | |
43 | 43 | function efSetupTitleBlacklistHooks() { |
44 | 44 | global $wgHooks; |
45 | | - $wgHooks['getUserPermissionsErrors'][] = 'TitleBlacklistHooks::userCan'; |
| 45 | + $wgHooks['getUserPermissionsErrorsExpensive'][] = 'TitleBlacklistHooks::userCan'; |
46 | 46 | $wgHooks['AbortMove'][] = 'TitleBlacklistHooks::abortMove'; |
47 | 47 | $wgHooks['UploadVerification'][] = 'TitleBlacklistHooks::verifyUpload'; |
48 | 48 | $wgHooks['EditFilter'][] = 'TitleBlacklistHooks::validateBlacklist'; |
Index: trunk/extensions/TitleBlacklist/TitleBlacklist.list.php |
— | — | @@ -100,8 +100,8 @@ |
101 | 101 | } |
102 | 102 | } |
103 | 103 | |
| 104 | + wfProfileOut( __METHOD__ ); |
104 | 105 | return $result; |
105 | | - wfProfileOut( __METHOD__ ); |
106 | 106 | } |
107 | 107 | |
108 | 108 | public function isBlacklisted( $title, $action = 'edit' ) { |