Use $this->mAttribs['rc_old_len'] and $this->mAttribs['rc_new_len'] instead of $this...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 6 Sep 2011 13:17:22 +0000 (13:17 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 6 Sep 2011 13:17:22 +0000 (13:17 +0000)
includes/RecentChange.php

index a3a42e6..4ee6813 100644 (file)
@@ -710,8 +710,8 @@ class RecentChange {
                        $url .= $query;
                }
 
-               if( isset( $this->mExtra['oldSize'] ) && isset( $this->mExtra['newSize'] ) ) {
-                       $szdiff = $this->mExtra['newSize'] - $this->mExtra['oldSize'];
+               if( $this->mAttribs['rc_old_len'] !== null && $this->mAttribs['rc_new_len'] !== null ) {
+                       $szdiff = $this->mAttribs['rc_new_len'] - $this->mAttribs['rc_old_len'];
                        if($szdiff < -500) {
                                $szdiff = "\002$szdiff\002";
                        } elseif($szdiff >= 0) {