** unknown variable $cascadeSources, should be $cascadingSources
** unknown PHP function 'array_len' (at least to my XAMPP), replaced with count()
$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 );
}
}
}