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