dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759520e
)
(bug 8329) Take size of text *after* passing it through pre-save transform
author
Rob Church
<robchurch@users.mediawiki.org>
Wed, 20 Dec 2006 00:06:15 +0000
(
00:06
+0000)
committer
Rob Church
<robchurch@users.mediawiki.org>
Wed, 20 Dec 2006 00:06:15 +0000
(
00:06
+0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
0d696ce
..
327a40c
100644
(file)
--- 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();