aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_extensions.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-11-16 21:56:15 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-11-16 21:56:15 +0100
commit34ebbbc7c3859a7686c61d2241821588c280ce82 (patch)
tree3fc53bc990de46c61c9814fa74b4db7135d9bda4 /phpBB/includes/acp/acp_extensions.php
parent1ff01d722a4ad9dbad301595c7632033d6063273 (diff)
parentb80b624551583e3223e5e035dd166a8c6094c649 (diff)
downloadforums-34ebbbc7c3859a7686c61d2241821588c280ce82.tar
forums-34ebbbc7c3859a7686c61d2241821588c280ce82.tar.gz
forums-34ebbbc7c3859a7686c61d2241821588c280ce82.tar.bz2
forums-34ebbbc7c3859a7686c61d2241821588c280ce82.tar.xz
forums-34ebbbc7c3859a7686c61d2241821588c280ce82.zip
Merge pull request #4497 from senky/ticket/14849
[ticket/14849] Add core.acp_extensions_run_action
Diffstat (limited to 'phpBB/includes/acp/acp_extensions.php')
-rw-r--r--phpBB/includes/acp/acp_extensions.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index f97711d69d..5a2ded91e2 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -34,7 +34,7 @@ class acp_extensions
function main()
{
// Start the page
- global $config, $user, $template, $request, $phpbb_extension_manager, $db, $phpbb_root_path, $phpEx, $phpbb_log, $cache;
+ global $config, $user, $template, $request, $phpbb_extension_manager, $db, $phpbb_root_path, $phpEx, $phpbb_log, $cache, $phpbb_dispatcher;
$this->db = $db;
$this->config = $config;
@@ -43,6 +43,7 @@ class acp_extensions
$this->cache = $cache;
$this->request = $request;
$this->log = $phpbb_log;
+ $this->phpbb_dispatcher = $phpbb_dispatcher;
$user->add_lang(array('install', 'acp/extensions', 'migrator'));
@@ -55,6 +56,21 @@ class acp_extensions
$safe_time_limit = (ini_get('max_execution_time') / 2);
$start_time = time();
+ /**
+ * Event to run a specific action on extension
+ *
+ * @event core.acp_extensions_run_action
+ * @var string action Action to run
+ * @var string u_action Url we are at
+ * @var string ext_name Extension name from request
+ * @var int safe_time_limit Safe limit of execution time
+ * @var int start_time Start time
+ * @since 3.1.11-RC1
+ */
+ $u_action = $this->u_action;
+ $vars = array('action', 'u_action', 'ext_name', 'safe_time_limit', 'start_time');
+ extract($this->phpbb_dispatcher->trigger_event('core.acp_extensions_run_action', compact($vars)));
+
// Cancel action
if ($request->is_set_post('cancel'))
{