r29741 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29740‎ | r29741 | r29742 >
Date:13:52, 14 January 2008
Author:vasilievvv
Status:old
Tags:
Comment:
* Use this (see prev commit) hook in the TitleBlacklist
* Fix profiling
Modified paths:
  • /trunk/extensions/TitleBlacklist/TitleBlacklist.list.php (modified) (history)
  • /trunk/extensions/TitleBlacklist/TitleBlacklist.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TitleBlacklist/TitleBlacklist.php
@@ -41,7 +41,7 @@
4242
4343 function efSetupTitleBlacklistHooks() {
4444 global $wgHooks;
45 - $wgHooks['getUserPermissionsErrors'][] = 'TitleBlacklistHooks::userCan';
 45+ $wgHooks['getUserPermissionsErrorsExpensive'][] = 'TitleBlacklistHooks::userCan';
4646 $wgHooks['AbortMove'][] = 'TitleBlacklistHooks::abortMove';
4747 $wgHooks['UploadVerification'][] = 'TitleBlacklistHooks::verifyUpload';
4848 $wgHooks['EditFilter'][] = 'TitleBlacklistHooks::validateBlacklist';
Index: trunk/extensions/TitleBlacklist/TitleBlacklist.list.php
@@ -100,8 +100,8 @@
101101 }
102102 }
103103
 104+ wfProfileOut( __METHOD__ );
104105 return $result;
105 - wfProfileOut( __METHOD__ );
106106 }
107107
108108 public function isBlacklisted( $title, $action = 'edit' ) {

Status & tagging log