Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -145,13 +145,11 @@ |
146 | 146 | if ( $old_user === false || $old_user == null ) { |
147 | 147 | return false; |
148 | 148 | } |
149 | | - |
| 149 | + // purge both pages now |
150 | 150 | if ( $old_user->getOption('OnlineStatusBar_active', false) ) { |
151 | 151 | if ( $old_user->getOption('OnlineStatusBar_autoupdate', false) == true ) { |
152 | | - $tp = WikiPage::factory( $old_user->getTalkPage() ); |
153 | | - $up = WikiPage::factory( $old_user->getUserPage() ); |
154 | | - $tp->doPurge(); |
155 | | - $up->doPurge(); |
| 152 | + WikiPage::factory( $old_user->getUserPage() )->doPurge(); |
| 153 | + WikiPage::factory( $old_user->getTalkPage() )->doPurge(); |
156 | 154 | } |
157 | 155 | } |
158 | 156 | return true; |