mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17457] Add more variables to manifest core event
PHPBB-17457
This commit is contained in:
parent
b6b0973e9e
commit
a707fe30dd
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue