MediaWiki  master
SettingsFileUtils.php
Go to the documentation of this file.
1 <?php
2 
4 
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 }
if(!defined('MW_SETUP_CALLBACK'))
Definition: WebStart.php:88
A collection of static utility methods for use with settings files.
static resolveRelativeLocation(string $path, string $base)
Resolves a relative settings source location.