Index: trunk/extensions/SpamBlacklist/cleanup.php |
— | — | @@ -57,26 +57,6 @@ |
58 | 58 | wfDoUpdates(); |
59 | 59 | } |
60 | 60 | |
61 | | - |
62 | | -/** |
63 | | - * Do any deferred updates and clear the list |
64 | | - * TODO: This could be in Wiki.php if that class made any sense at all |
65 | | - */ |
66 | | -if ( !function_exists( 'wfDoUpdates' ) ) { |
67 | | - function wfDoUpdates() |
68 | | - { |
69 | | - global $wgPostCommitUpdateList, $wgDeferredUpdateList; |
70 | | - foreach ( $wgDeferredUpdateList as $update ) { |
71 | | - $update->doUpdate(); |
72 | | - } |
73 | | - foreach ( $wgPostCommitUpdateList as $update ) { |
74 | | - $update->doUpdate(); |
75 | | - } |
76 | | - $wgDeferredUpdateList = array(); |
77 | | - $wgPostCommitUpdateList = array(); |
78 | | - } |
79 | | -} |
80 | | - |
81 | 61 | //------------------------------------------------------------------------------ |
82 | 62 | |
83 | 63 | $username = 'Spam cleanup script'; |