From: daniel Date: Mon, 3 Sep 2012 14:53:14 +0000 (+0200) Subject: Don't clone content, may need state X-Git-Tag: 1.31.0-rc.0~22097^2^2~30 X-Git-Url: http://git.cyclocoop.org//%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/%22?a=commitdiff_plain;h=e87534c1f5d48df8b10e564253eefdad23963ce1;p=lhc%2Fweb%2Fwiklou.git Don't clone content, may need state Change-Id: I5dacb1e9fce225f581829d229713d51abfae36f1 --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 2f90b7b418..da7cc9d81a 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -1700,10 +1700,6 @@ class WikiPage extends Page implements IDBAccessObject { 'content_format' => $serialisation_format, ) ); #XXX: pass content object?! - # Bug 37225: use accessor to get the text as Revision may trim it. - # After trimming, the text may be a duplicate of the current text. - $content = $revision->getContent(); // sanity; EditPage should trim already - $changed = !$content->equals( $old_content ); if ( $changed ) {