From: Alexandre Emsenhuber Date: Tue, 6 Sep 2011 13:17:22 +0000 (+0000) Subject: Use $this->mAttribs['rc_old_len'] and $this->mAttribs['rc_new_len'] instead of $this... X-Git-Tag: 1.31.0-rc.0~27879 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=3bcd1980ff37cd3a1a9b38a78639353a280e2782;p=lhc%2Fweb%2Fwiklou.git Use $this->mAttribs['rc_old_len'] and $this->mAttribs['rc_new_len'] instead of $this->mExtra['oldSize'] and $this->mExtra['newSize'] --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index a3a42e656e..4ee6813aa5 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -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) {