dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Rewrite pref cleanup script"
[lhc/web/wiklou.git]
/
includes
/
content
/
ContentHandler.php
diff --git
a/includes/content/ContentHandler.php
b/includes/content/ContentHandler.php
index
50cc9b5
..
edfc81c
100644
(file)
--- a/
includes/content/ContentHandler.php
+++ b/
includes/content/ContentHandler.php
@@
-799,13
+799,13
@@
abstract class ContentHandler {
}
// New page created
}
// New page created
- if ( $flags & EDIT_NEW && $newContent
&& $newContent->getSize() > 0
) {
- return 'newpage';
- }
-
- // New blank page
- if ( $flags & EDIT_NEW && $newContent && $newContent->getSize() === 0 ) {
- return 'newblank';
+ if ( $flags & EDIT_NEW && $newContent ) {
+ if ( $newContent->getSize() === 0 ) {
+ // New blank page
+ return 'newblank';
+ } else {
+ return 'newpage';
+ }
}
// Removing more than 90% of the page
}
// Removing more than 90% of the page