From: Raimond Spekking Date: Thu, 9 Aug 2007 22:13:44 +0000 (+0000) Subject: * Fix regressions from r24515: X-Git-Tag: 1.31.0-rc.0~51801 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=5ab813fcd0ca84aa103ffb49b66c2c4d083388d1;p=lhc%2Fweb%2Fwiklou.git * Fix regressions from r24515: ** unknown variable $cascadeSources, should be $cascadingSources ** unknown PHP function 'array_len' (at least to my XAMPP), replaced with count() --- diff --git a/includes/Title.php b/includes/Title.php index 2281fa8bff..a996764dd5 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1143,9 +1143,9 @@ class Title { $right = ( $right == 'sysop' ) ? 'protect' : $right; if( '' != $right && !$user->isAllowed( $right ) ) { $pages = ''; - foreach( $cascadeSources as $id => $page ) + foreach( $cascadingSources as $id => $page ) $pages .= '* [[:' . $page->getPrefixedText() . "]]\n"; - $errors[] = array( 'cascadeprotected', array_len( $cascadingSources ), $pages ); + $errors[] = array( 'cascadeprotected', count( $cascadingSources ), $pages ); } } }