r101472 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101471‎ | r101472 | r101473 >
Date:13:23, 1 November 2011
Author:petrb
Status:deferred
Tags:
Comment:
defaults added for getOption
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php
@@ -145,8 +145,9 @@
146146 if ( $old_user === false || $old_user == null ) {
147147 return false;
148148 }
149 - if ( $old_user->getOption('OnlineStatusBar_active') ) {
150 - if ( $old_user->getOption('OnlineStatusBar_autoupdate') == true ) {
 149+
 150+ if ( $old_user->getOption('OnlineStatusBar_active', false) ) {
 151+ if ( $old_user->getOption('OnlineStatusBar_autoupdate', false) == true ) {
151152 $update = SquidUpdate::newSimplePurge( $old_user->getTalkPage() );
152153 $update->doUpdate();
153154 $update = SquidUpdate::newSimplePurge( $old_user->getUserPage() );

Status & tagging log