mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 10:28:55 +00:00
[ticket/15289] Add event to add language
PHPBB3-15289
This commit is contained in:
parent
c3c8117f0a
commit
d5438dd3f2
1 changed files with 12 additions and 1 deletions
|
@ -57,7 +57,7 @@ class acp_storage
|
||||||
|
|
||||||
public function main($id, $mode)
|
public function main($id, $mode)
|
||||||
{
|
{
|
||||||
global $phpbb_container;
|
global $phpbb_container, $phpbb_dispatcher;
|
||||||
|
|
||||||
$this->config = $phpbb_container->get('config');
|
$this->config = $phpbb_container->get('config');
|
||||||
$this->lang = $phpbb_container->get('language');
|
$this->lang = $phpbb_container->get('language');
|
||||||
|
@ -70,6 +70,17 @@ class acp_storage
|
||||||
// Add necesary language files
|
// Add necesary language files
|
||||||
$this->lang->add_lang(array('acp/storage'));
|
$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)
|
switch($mode)
|
||||||
{
|
{
|
||||||
case 'settings':
|
case 'settings':
|
||||||
|
|
Loading…
Add table
Reference in a new issue