MediaWiki
REL1_39
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:25
if
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
Definition
WebStart.php:82
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 Fri Dec 20 2024 15:35:17 for MediaWiki by
1.10.0