Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -132,20 +132,22 @@ |
133 | 133 | |
134 | 134 | # Update old rows, if necessary |
135 | 135 | if ( $this->mAttribs['rc_type'] == RC_EDIT ) { |
136 | | - $oldid = $this->mAttribs['rc_last_oldid']; |
137 | | - $ns = $this->mAttribs['rc_namespace']; |
138 | | - $title = $this->mAttribs['rc_title']; |
139 | 136 | $lastTime = $this->mExtra['lastTimestamp']; |
140 | | - $now = $this->mAttribs['rc_timestamp']; |
141 | | - $curId = $this->mAttribs['rc_cur_id']; |
| 137 | + #$now = $this->mAttribs['rc_timestamp']; |
| 138 | + #$curId = $this->mAttribs['rc_cur_id']; |
142 | 139 | |
143 | 140 | # Don't bother looking for entries that have probably |
144 | 141 | # been purged, it just locks up the indexes needlessly. |
145 | 142 | global $wgRCMaxAge; |
146 | 143 | $age = time() - wfTimestamp( TS_UNIX, $lastTime ); |
147 | 144 | if( $age < $wgRCMaxAge ) { |
148 | | - # live hack, will commit once tested - kate |
| 145 | + # live hack, will commit once tested - kate |
149 | 146 | # Update rc_this_oldid for the entries which were current |
| 147 | + # |
| 148 | + #$oldid = $this->mAttribs['rc_last_oldid']; |
| 149 | + #$ns = $this->mAttribs['rc_namespace']; |
| 150 | + #$title = $this->mAttribs['rc_title']; |
| 151 | + # |
150 | 152 | #$dbw->update( 'recentchanges', |
151 | 153 | # array( /* SET */ |
152 | 154 | # 'rc_this_oldid' => $oldid |
— | — | @@ -327,7 +329,7 @@ |
328 | 330 | } |
329 | 331 | |
330 | 332 | /* static */ function notifyMoveOverRedirect( $timestamp, &$oldTitle, &$newTitle, &$user, $comment, $ip='' ) { |
331 | | - RecentChange::notifyMove( $timestamp, $oldTitle, $newTitle, $user, $comment, $ip='', true ); |
| 333 | + RecentChange::notifyMove( $timestamp, $oldTitle, $newTitle, $user, $comment, $ip, true ); |
332 | 334 | } |
333 | 335 | |
334 | 336 | # A log entry is different to an edit in that previous revisions are |
— | — | @@ -451,11 +453,12 @@ |
452 | 454 | |
453 | 455 | if ( isset( $oldSize ) && isset( $newSize ) ) { |
454 | 456 | $szdiff = $newSize - $oldSize; |
455 | | - if ($szdiff < -500) |
| 457 | + if ($szdiff < -500) { |
456 | 458 | $szdiff = "\002$szdiff\002"; |
457 | | - else if ($szdiff >= 0) |
458 | | - $szdiff = "+$szdiff"; |
459 | | - $szdiff = "($szdiff)"; |
| 459 | + } elseif ($szdiff >= 0) { |
| 460 | + $szdiff = '+' . $szdiff ; |
| 461 | + } |
| 462 | + $szdiff = '(' . $szdiff . ')' ; |
460 | 463 | } else { |
461 | 464 | $szdiff = ''; |
462 | 465 | } |