3 * File-scope setup actions, loaded before LocalSettings.php, shared by
4 * WebStart.php and doMaintenance.php
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * http://www.gnu.org/copyleft/gpl.html
25 if ( !defined( 'MEDIAWIKI' ) ) {
30 // Grab profiling functions
31 require_once "$IP/includes/profiler/ProfilerFunctions.php";
33 // Start the autoloader, so that extensions can derive classes from core files
34 require_once "$IP/includes/AutoLoader.php";
36 // Load up some global defines.
37 require_once "$IP/includes/Defines.php";
41 if ( file_exists( "$IP/StartProfiler.php" ) ) {
42 require "$IP/StartProfiler.php";
45 // Load default settings
46 require_once "$IP/includes/DefaultSettings.php";
48 // Load global functions
49 require_once "$IP/includes/GlobalFunctions.php";
51 // Load composer's autoloader if present
52 if ( is_readable( "$IP/vendor/autoload.php" ) ) {
53 require_once "$IP/vendor/autoload.php";