Index: trunk/tools/mwmultiversion/multiversion/switchAllMediaWikis |
— | — | @@ -41,8 +41,8 @@ |
42 | 42 | |
43 | 43 | $datList = ""; |
44 | 44 | $count = 0; |
45 | | - foreach ( $verList as $item ) { |
46 | | - $items = explode( ' ', $row ); |
| 45 | + foreach ( $verList as $row ) { |
| 46 | + $items = explode( ' ', trim( $row ) ); |
47 | 47 | # Existing values... |
48 | 48 | $dbName = $items[0]; |
49 | 49 | $version = $items[1]; |
Index: trunk/tools/mwmultiversion/multiversion/activeMWVersions |
— | — | @@ -34,8 +34,8 @@ |
35 | 35 | } |
36 | 36 | |
37 | 37 | $result = $activeVersions = array(); |
38 | | - foreach ( $verList as $item ) { |
39 | | - $items = explode( ' ', $row ); |
| 38 | + foreach ( $verList as $row ) { |
| 39 | + $items = explode( ' ', trim( $row ) ); |
40 | 40 | $dbName = $items[0]; |
41 | 41 | $version = $items[1]; |
42 | 42 | $extVersion = isset( $items[2] ) ? $items[2] : ''; |