* Fix r74790 by actually calling setup (using parent::setup)
[lhc/web/wiklou.git] / config / index.php
1 <?php
2 /**
3 * MediaWiki web-based config/installation
4 *
5 * Copyright © 2004 Brion Vibber <brion@pobox.com>, 2006 Rob Church <robchur@gmail.com>
6 * http://www.mediawiki.org/
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * http://www.gnu.org/copyleft/gpl.html
22 *
23 * @file
24 */
25
26 # Attempt to set up the include path, to fix problems with relative includes
27 $IP = dirname( dirname( __FILE__ ) );
28 define( 'MW_INSTALL_PATH', $IP );
29
30 # Define an entry point and include some files
31 define( "MEDIAWIKI", true );
32 define( "MEDIAWIKI_INSTALL", true );
33
34 # Check for PHP 5
35 if ( !function_exists( 'version_compare' )
36 || version_compare( phpversion(), '5.0.0' ) < 0
37 ) {
38 define( 'MW_PHP4', '1' );
39 require( "$IP/includes/DefaultSettings.php" );
40 require( "$IP/includes/templates/PHP4.php" );
41 exit;
42 }
43
44 // Isolate the rest of the code so this file can die out cleanly
45 // if we find we're running under PHP 4.x... We use PHP 5 syntax
46 // which doesn't parse under 4.
47 require( dirname( __FILE__ ) . "/Installer.php" );