1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-05 16:33:34 +02:00

[ticket/15289] Add event to add language

PHPBB3-15289
This commit is contained in:
Rubén Calvo 2017-08-02 15:41:05 +02:00
parent c3c8117f0a
commit d5438dd3f2

View File

@ -57,7 +57,7 @@ class acp_storage
public function main($id, $mode)
{
global $phpbb_container;
global $phpbb_container, $phpbb_dispatcher;
$this->config = $phpbb_container->get('config');
$this->lang = $phpbb_container->get('language');
@ -70,6 +70,17 @@ class acp_storage
// Add necesary language files
$this->lang->add_lang(array('acp/storage'));
/**
* Add language strings
*
* @event core.acp_storage_load
* @var array
* @since 3.3.0-a1
*/
$vars = array(
);
extract($phpbb_dispatcher->trigger_event('core.acp_storage_load', compact($vars)));
switch($mode)
{
case 'settings':