http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65469
Revision: 65469
Author: mah
Date: 2010-04-23 17:29:17 +0000 (Fri, 23 Apr 2010)
Log Message:
-----------
Remove code that looks like it came from Perl as it
?\226?\128?\156works?\226?\128?\157 (doesn't produce an error) but always
evaluates to true.
$ php -r '$a = array();var_dump($a > 0);'
bool(true)
Modified Paths:
--------------
trunk/phase3/includes/Title.php
Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php 2010-04-23 17:16:14 UTC (rev 65468)
+++ trunk/phase3/includes/Title.php 2010-04-23 17:29:17 UTC (rev 65469)
@@ -1408,7 +1408,7 @@
# 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 ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs