Index: trunk/phase3/maintenance/mwdocgen.php |
— | — | @@ -116,31 +116,7 @@ |
117 | 117 | |
118 | 118 | $content = file( $entries ); |
119 | 119 | |
120 | | - // check if file is xml (subversion release <= 1.3) or not (subversion release = 1.4) |
121 | | - if ( preg_match( '/^<\?xml/', $content[0] ) ) { |
122 | | - // subversion is release <= 1.3 |
123 | | - if ( !function_exists( 'simplexml_load_file' ) ) { |
124 | | - // We could fall back to expat... YUCK |
125 | | - return false; |
126 | | - } |
127 | | - |
128 | | - $xml = simplexml_load_file( $entries ); |
129 | | - |
130 | | - if ( $xml ) { |
131 | | - foreach ( $xml->entry as $entry ) { |
132 | | - if ( $xml->entry[0]['name'] == '' ) { |
133 | | - // The directory entry should always have a revision marker. |
134 | | - if ( $entry['revision'] ) { |
135 | | - return intval( $entry['revision'] ); |
136 | | - } |
137 | | - } |
138 | | - } |
139 | | - } |
140 | | - return false; |
141 | | - } else { |
142 | | - // subversion is release 1.4 |
143 | | - return intval( $content[3] ); |
144 | | - } |
| 120 | + return intval( $content[3] ); |
145 | 121 | } |
146 | 122 | |
147 | 123 | /** |
— | — | @@ -273,6 +249,7 @@ |
274 | 250 | $file = readaline( "Enter file name $mwPath" ); |
275 | 251 | } |
276 | 252 | $input = $mwPath . $file; |
| 253 | + break; |
277 | 254 | case 6: |
278 | 255 | $input = $mwPath; |
279 | 256 | $exclude_patterns = 'extensions'; |