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:
41a4e0e
)
Remove code that looks like it came from Perl as it “works” (doesn't produce an error...
author
Mark A. Hershberger
<mah@users.mediawiki.org>
Fri, 23 Apr 2010 17:29:17 +0000
(17:29 +0000)
committer
Mark A. Hershberger
<mah@users.mediawiki.org>
Fri, 23 Apr 2010 17:29:17 +0000
(17:29 +0000)
$ php -r '$a = array();var_dump($a > 0);'
bool(true)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
09d68b2
..
aa6b8bf
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1408,7
+1408,7
@@
class Title {
# Several cascading protected pages may include this page...
# Check each cascading level
# This is only for protection restrictions, not for all actions
- if(
$cascadingSources > 0 &&
isset($restrictions[$action]) ) {
+ if( isset($restrictions[$action]) ) {
foreach( $restrictions[$action] as $right ) {
$right = ( $right == 'sysop' ) ? 'protect' : $right;
if( $right != '' && !$user->isAllowed( $right ) ) {