Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -225,18 +225,17 @@ |
226 | 226 | $_lsExists = file_exists( "$IP/LocalSettings.php" ); |
227 | 227 | wfRestoreWarnings(); |
228 | 228 | |
229 | | - if( $_lsExists ) { |
230 | | - require( "$IP/includes/DefaultSettings.php" ); |
231 | | - require( "$IP/LocalSettings.php" ); |
232 | | - if ( file_exists( "$IP/AdminSettings.php" ) ) { |
233 | | - require( "$IP/AdminSettings.php" ); |
234 | | - } |
235 | | - $vars = get_defined_vars(); |
236 | | - unset( $vars['_lsExists'] ); |
237 | | - return $vars; |
238 | | - } else { |
| 229 | + if( !$_lsExists ) { |
239 | 230 | return false; |
240 | 231 | } |
| 232 | + unset($_lsExists); |
| 233 | + |
| 234 | + require( "$IP/includes/DefaultSettings.php" ); |
| 235 | + require( "$IP/LocalSettings.php" ); |
| 236 | + if ( file_exists( "$IP/AdminSettings.php" ) ) { |
| 237 | + require( "$IP/AdminSettings.php" ); |
| 238 | + } |
| 239 | + return get_defined_vars(); |
241 | 240 | } |
242 | 241 | |
243 | 242 | /** |