r4799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r4798‎ | r4799 | r4800 >
Date:07:43, 15 August 2004
Author:timstarling
Status:old
Tags:
Comment:
fix of bug added in 1.37
Modified paths:
  • /trunk/phase3/includes/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialMovepage.php
@@ -132,12 +132,15 @@
133133 # moved into article namespace?
134134 elseif ( $ons != NS_MAIN and $nns == NS_MAIN ) {
135135 $u = new SiteStatsUpdate( 0, 1, +1 ); # not viewed, edited, adding
 136+ } else {
 137+ $u = false;
136138 }
 139+ if ( $u !== false ) {
 140+ # save it for later update
 141+ array_push( $wgDeferredUpdateList, $u );
 142+ unset($u);
 143+ }
137144
138 - # save it for later update
139 - array_push( $wgDeferredUpdateList, $u );
140 - unset($u);
141 -
142145 # Move talk page if
143146 # (1) the checkbox says to,
144147 # (2) the namespaces are not themselves talk namespaces, and of course

Status & tagging log