From 5c722a3a3a9ccad798b018db8fb4b7dfa4fc305b Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Fri, 9 Mar 2007 16:42:37 +0000 Subject: [PATCH] use bytes rather than chars, since that's what other page size fields use --- includes/Revision.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Revision.php b/includes/Revision.php index 357a8568ea..34210ee938 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -326,7 +326,7 @@ class Revision { $this->mTitle = null; # Load on demand if needed $this->mCurrent = false; - $this->mSize = is_null($this->mText) ? null : mb_strlen($this->mText); + $this->mSize = is_null($this->mText) ? null : strlen($this->mText); } else { throw new MWException( 'Revision constructor passed invalid row format.' ); } @@ -711,7 +711,7 @@ class Revision { 'rev_user_text' => $this->mUserText, 'rev_timestamp' => $dbw->timestamp( $this->mTimestamp ), 'rev_deleted' => $this->mDeleted, - 'rev_len' => mb_strlen($this->mText), + 'rev_len' => strlen($this->mText), ), $fname ); -- 2.20.1