aboutsummaryrefslogtreecommitdiffstats
path: root/includes/DefaultSettings.php
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2022-01-27 21:24:12 +0100
committerdaniel <dkinzler@wikimedia.org>2022-03-04 14:18:27 +0100
commitcf581bb2ca9ca37d3c6b540dbaa3e3629b184210 (patch)
tree9fa83c73ad47d925c0dd02f832ead1ba8a43a1a1 /includes/DefaultSettings.php
parent47cb6a9be1f6aa1157e3951bee12453d743ee89c (diff)
downloadmediawikicore-cf581bb2ca9ca37d3c6b540dbaa3e3629b184210.tar.gz
mediawikicore-cf581bb2ca9ca37d3c6b540dbaa3e3629b184210.zip
Define MW_INSTALL_PATH constant and BaseDirectory config.
Application logic should use the BaseDirectory config variable. Framework code should use MW_INSTALL_PATH to locate files should. NOTE: Update https://www.mediawiki.org/wiki/Manual:$IP Bug: T300301 Depends-On: I7142af16d692f26e90673b058029f572c1ea3991 Change-Id: Ib4caa80bb7007c4c7960a2fd370cf5da7d9ba344
Diffstat (limited to 'includes/DefaultSettings.php')
-rw-r--r--includes/DefaultSettings.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php
index 2683c5216060..1ad59acab95a 100644
--- a/includes/DefaultSettings.php
+++ b/includes/DefaultSettings.php
@@ -257,6 +257,17 @@ $wgExtensionDirectory = null;
$wgStyleDirectory = null;
/**
+ * Absolute filesystem path of the root directory of the MediaWiki installation.
+ * The MW_INSTALL_PATH environment variable can be used to set this.
+ *
+ * @note Automatically set in Setup.php before loading local settings.
+ * @note Do not modify in settings files! Must remain equal to the MW_INSTALL_PATH constant
+ * defined in Setup.php.
+ * @since 1.38
+ */
+$wgBaseDirectory = null;
+
+/**
* The URL path for primary article page views. This path should contain $1,
* which is replaced by the article title.
*