Index: trunk/phase3/includes/Title.php |
— | — | @@ -1143,9 +1143,9 @@ |
1144 | 1144 | $right = ( $right == 'sysop' ) ? 'protect' : $right; |
1145 | 1145 | if( '' != $right && !$user->isAllowed( $right ) ) { |
1146 | 1146 | $pages = ''; |
1147 | | - foreach( $cascadeSources as $id => $page ) |
| 1147 | + foreach( $cascadingSources as $id => $page ) |
1148 | 1148 | $pages .= '* [[:' . $page->getPrefixedText() . "]]\n"; |
1149 | | - $errors[] = array( 'cascadeprotected', array_len( $cascadingSources ), $pages ); |
| 1149 | + $errors[] = array( 'cascadeprotected', count( $cascadingSources ), $pages ); |
1150 | 1150 | } |
1151 | 1151 | } |
1152 | 1152 | } |