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:
86edc1c
)
Disallow rollback during read-only mode
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 5 Dec 2003 10:55:50 +0000
(10:55 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 5 Dec 2003 10:55:50 +0000
(10:55 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
305aaf7
..
4bc527b
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-961,6
+961,10
@@
class Article {
$wgOut->sysopRequired();
return;
}
+ if ( wfReadOnly() ) {
+ $wgOut->readOnlyPage( $this->getContent() );
+ return;
+ }
# Replace all this user's current edits with the next one down
$tt = wfStrencode( $this->mTitle->getDBKey() );