* (bug 25248) API: paraminfo errors with certain modules
[lhc/web/wiklou.git] / includes / ConfEditor.php
index 7b180a4..a1a3431 100644 (file)
@@ -427,7 +427,7 @@ class ConfEditor {
         */
        function findValueRegion( $pathName ) {
                if ( !isset( $this->pathInfo[$pathName] ) ) {
-                       throw new MWEXception( "Can't find path \"$pathName\"" );
+                       throw new MWException( "Can't find path \"$pathName\"" );
                }
                $path = $this->pathInfo[$pathName];
                if ( $path['valueStartByte'] === false || $path['valueEndByte'] === false ) {
@@ -836,7 +836,6 @@ class ConfEditor {
         * not call except from popPath() or nextPath().
         */
        function endPath() {
-               $i = count( $this->pathStack ) - 1;
                $key = '';
                foreach ( $this->pathStack as $pathInfo ) {
                        if ( $key !== '' ) {