aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Settings/Source/PhpSettingsSource.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Settings/Source/PhpSettingsSource.php')
-rw-r--r--includes/Settings/Source/PhpSettingsSource.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/Settings/Source/PhpSettingsSource.php b/includes/Settings/Source/PhpSettingsSource.php
index ea26b676ae30..c63d1cdca750 100644
--- a/includes/Settings/Source/PhpSettingsSource.php
+++ b/includes/Settings/Source/PhpSettingsSource.php
@@ -10,7 +10,7 @@ use Wikimedia\AtEase\AtEase;
*
* @since 1.38
*/
-class PhpSettingsSource implements SettingsSource {
+class PhpSettingsSource implements SettingsSource, SettingsIncludeLocator {
/**
* Path to the PHP file.
* @var string
@@ -82,4 +82,8 @@ class PhpSettingsSource implements SettingsSource {
return $this->path;
}
+ public function locateInclude( string $location ): string {
+ return SettingsFileUtils::resolveRelativeLocation( $location, dirname( $this->path ) );
+ }
+
}