MediaWiki
REL1_40
SettingsFileUtils.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Settings\Source
;
4
12
class
SettingsFileUtils
{
13
27
public
static
function
resolveRelativeLocation
(
string
$path
,
string
$base
): string {
28
// Qualify the path if it isn't already absolute
29
if
( !preg_match(
'!^[a-zA-Z]:\\\\!'
,
$path
) &&
$path
[0] != DIRECTORY_SEPARATOR ) {
30
$path
=
$base
. DIRECTORY_SEPARATOR .
$path
;
31
}
32
33
return
$path
;
34
}
35
}
$path
$path
Definition
NoLocalSettings.php:27
if
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
Definition
WebStart.php:88
MediaWiki\Settings\Source\SettingsFileUtils
A collection of static utility methods for use with settings files.
Definition
SettingsFileUtils.php:12
MediaWiki\Settings\Source\SettingsFileUtils\resolveRelativeLocation
static resolveRelativeLocation(string $path, string $base)
Resolves a relative settings source location.
Definition
SettingsFileUtils.php:27
$base
$base
Definition
generateLocalAutoload.php:11
MediaWiki\Settings\Source
Definition
ArraySource.php:3
includes
Settings
Source
SettingsFileUtils.php
Generated on Thu Jun 27 2024 14:04:09 for MediaWiki by
1.10.0