From a707fe30dd66a7de85d80e0b2c23a6479f8d80bf Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Fri, 20 Dec 2024 20:19:17 -0800 Subject: [PATCH] [ticket/17457] Add more variables to manifest core event PHPBB-17457 --- phpBB/phpbb/manifest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/manifest.php b/phpBB/phpbb/manifest.php index 1eb84eb6a7..4418327a2c 100644 --- a/phpBB/phpbb/manifest.php +++ b/phpBB/phpbb/manifest.php @@ -79,11 +79,13 @@ class manifest * Event to modify manifest data before it is outputted * * @event core.modify_manifest - * @var array manifest Array of manifest members - * @var string board_path Path to the board root + * @var array manifest Array of manifest members + * @var string board_url Url to the board root + * @var string sitename Full name of the board + * @var string sitename_short Shortened name of the board * @since 4.0.0-a1 */ - $vars = array('manifest', 'board_path'); + $vars = ['manifest', 'board_url', 'sitename', 'sitename_short']; extract($this->phpbb_dispatcher->trigger_event('core.modify_manifest', compact($vars))); $response = new JsonResponse($manifest);