r101474 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101473‎ | r101474 | r101475 >
Date:13:57, 1 November 2011
Author:petrb
Status:deferred
Tags:
Comment:
improved purge
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php
@@ -148,10 +148,10 @@
149149
150150 if ( $old_user->getOption('OnlineStatusBar_active', false) ) {
151151 if ( $old_user->getOption('OnlineStatusBar_autoupdate', false) == true ) {
152 - $update = SquidUpdate::newSimplePurge( $old_user->getTalkPage() );
153 - $update->doUpdate();
154 - $update = SquidUpdate::newSimplePurge( $old_user->getUserPage() );
155 - $update->doUpdate();
 152+ $tp = WikiPage::factory( $old_user->getTalkPage() );
 153+ $up = WikiPage::factory( $old_user->getUserPage() );
 154+ $tp->doPurge();
 155+ $up->doPurge();
156156 }
157157 }
158158 return true;

Follow-up revisions

RevisionCommit summaryAuthorDate
r101475there is no need to hold the class data in variablepetrb14:04, 1 November 2011

Status & tagging log