From: daniel Date: Tue, 24 Jul 2012 10:57:19 +0000 (+0200) Subject: ported fix for bug 37225 to getContent() X-Git-Tag: 1.31.0-rc.0~22097^2^2~68 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=3403216446d34d2a9ddee553027197f51ed2451d;p=lhc%2Fweb%2Fwiklou.git ported fix for bug 37225 to getContent() Change-Id: Ia51742ba717b352d79734550510ad4af6fa47ba6 --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 11ac819f1d..ea9c53d27f 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -1864,7 +1864,7 @@ class WikiPage extends Page { $revisionId = $revision->insertOn( $dbw ); # Bug 37225: use accessor to get the text as Revision may trim it - //$text = $revision->getText(); // sanity; EditPage should trim already + $content = $revision->getContent(); // sanity; get normalized version # Update the page record with revision data $this->updateRevisionOn( $dbw, $revision, 0 );