mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/15289] Add event to add language
PHPBB3-15289
This commit is contained in:
@@ -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':
|
||||||
|
Reference in New Issue
Block a user