From: Rob Church Date: Wed, 20 Dec 2006 00:06:15 +0000 (+0000) Subject: (bug 8329) Take size of text *after* passing it through pre-save transform X-Git-Tag: 1.31.0-rc.0~54834 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=f08bc609e8b2e48bddd3afbed52be1d81e888e4d;p=lhc%2Fweb%2Fwiklou.git (bug 8329) Take size of text *after* passing it through pre-save transform --- diff --git a/includes/Article.php b/includes/Article.php index 0d696ce0bc..327a40cff0 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1278,13 +1278,13 @@ class Article { $oldtext = $this->getContent(); $oldsize = strlen( $oldtext ); - $newsize = strlen( $text ); # Provide autosummaries if one is not provided. if ($flags & EDIT_AUTOSUMMARY && $summary == '') $summary = $this->getAutosummary( $oldtext, $text, $flags ); $text = $this->preSaveTransform( $text ); + $newsize = strlen( $text ); $dbw =& wfGetDB( DB_MASTER ); $now = wfTimestampNow();