From 5ab813fcd0ca84aa103ffb49b66c2c4d083388d1 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 9 Aug 2007 22:13:44 +0000 Subject: [PATCH] * Fix regressions from r24515: ** unknown variable $cascadeSources, should be $cascadingSources ** unknown PHP function 'array_len' (at least to my XAMPP), replaced with count() --- includes/Title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } } } -- 2.20.1