aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_extensions.php
diff options
context:
space:
mode:
authorkasimi <mail@kasimi.net>2017-04-29 11:01:55 +0200
committerkasimi <mail@kasimi.net>2017-04-29 11:01:55 +0200
commitbc404a3701a4f746fbd161d3f550e2f32fda3a7c (patch)
tree1a8d0e4678fd55dcbfffce86cade51f07352a052 /phpBB/includes/acp/acp_extensions.php
parent0082dd8039aa534ae0d6f4f17622a665e82c6942 (diff)
downloadforums-bc404a3701a4f746fbd161d3f550e2f32fda3a7c.tar
forums-bc404a3701a4f746fbd161d3f550e2f32fda3a7c.tar.gz
forums-bc404a3701a4f746fbd161d3f550e2f32fda3a7c.tar.bz2
forums-bc404a3701a4f746fbd161d3f550e2f32fda3a7c.tar.xz
forums-bc404a3701a4f746fbd161d3f550e2f32fda3a7c.zip
[ticket/15187] Add ACP style after enabling an extension
Diffstat (limited to 'phpBB/includes/acp/acp_extensions.php')
-rw-r--r--phpBB/includes/acp/acp_extensions.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index 9e72ab83f8..f2fb09b427 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -212,6 +212,15 @@ class acp_extensions
meta_refresh(0, $this->u_action . '&amp;action=enable&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('enable.' . $ext_name));
}
}
+
+ // Update custom style for admin area
+ $template->set_custom_style(array(
+ array(
+ 'name' => 'adm',
+ 'ext_path' => 'adm/style/',
+ ),
+ ), array($phpbb_root_path . 'adm/style'));
+
$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_EXT_ENABLE', time(), array($ext_name));
}
catch (\phpbb\db\migration\exception $e)