diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e4b5f899..f3efb28ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ * Added second parameter to `UserObject::isMyself()` method * Added `UserObject::$isAuthorizedCallable` to allow `$user->isAuthorized()` customization * Use secure session cookies in HTTPS by default (`system.session.secure_https: true`) - * Added new `Plugin::upstreamConfigVar()` function to access plugin specific functions for page overrides + * Added new `Plugin::inheritedConfigOption()` function to access plugin specific functions for page overrides 2. [](#improved) * Upgraded vendor libs for PHP 8.1 compatibility * Upgraded to **composer v2.1.14** for PHP 8.1 compatibility diff --git a/system/src/Grav/Common/Plugin.php b/system/src/Grav/Common/Plugin.php index bd245d761..3510b53ec 100644 --- a/system/src/Grav/Common/Plugin.php +++ b/system/src/Grav/Common/Plugin.php @@ -414,7 +414,7 @@ class Plugin implements EventSubscriberInterface, ArrayAccess return true; } - public static function upstreamConfigVar(string $plugin, string $var, PageInterface $page = null, $default = null) + public static function inheritedConfigOption(string $plugin, string $var, PageInterface $page = null, $default = null) { if (Utils::isAdminPlugin()) { $page = Grav::instance()['admin']->page() ?? null;