* Fix regressions from r24515:
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 9 Aug 2007 22:13:44 +0000 (22:13 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 9 Aug 2007 22:13:44 +0000 (22:13 +0000)
** unknown variable $cascadeSources, should be $cascadingSources
** unknown PHP function 'array_len' (at least to my XAMPP), replaced with count()

includes/Title.php

index 2281fa8..a996764 100644 (file)
@@ -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 );
                                        }
                                }
                        }