r77825 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77824‎ | r77825 | r77826 >
Date:19:56, 5 December 2010
Author:ialex
Status:ok
Tags:
Comment:
Remove duplicate delcaration wfDoUpdates(); I don't this extension supports such old MediaWiki versions ;)
Modified paths:
  • /trunk/extensions/SpamBlacklist/cleanup.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SpamBlacklist/cleanup.php
@@ -57,26 +57,6 @@
5858 wfDoUpdates();
5959 }
6060
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 -
8161 //------------------------------------------------------------------------------
8262
8363 $username = 'Spam cleanup script';

Status & tagging log