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:
6c30ef8
)
Cleanup updateRestrictions() some
author
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 9 Dec 2008 22:12:29 +0000
(22:12 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 9 Dec 2008 22:12:29 +0000
(22:12 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
bb1d7a0
..
7193904
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-1837,7
+1837,7
@@
class Article {
global $wgUser, $wgRestrictionTypes, $wgContLang;
$id = $this->mTitle->getArticleID();
- if(
array() != $this->mTitle->getUserPermissionsErrors( 'protect', $wgUser ) || wfReadOnly() || $id == 0
) {
+ if(
$id <= 0 || wfReadOnly() || !$this->mTitle->userCan('protect')
) {
return false;
}