aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_extensions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_extensions.php')
-rw-r--r--phpBB/includes/acp/acp_extensions.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index aba9caaece..9bdd8eb458 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -137,6 +137,12 @@ class acp_extensions
trigger_error($user->lang['EXTENSION_NOT_AVAILABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
}
+ $extension = $phpbb_extension_manager->get_extension($ext_name);
+ if (!$extension->is_enableable())
+ {
+ trigger_error($user->lang['EXTENSION_NOT_ENABLEABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
+ }
+
if ($phpbb_extension_manager->is_enabled($ext_name))
{
redirect($this->u_action);
@@ -162,6 +168,12 @@ class acp_extensions
trigger_error($user->lang['EXTENSION_NOT_AVAILABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
}
+ $extension = $phpbb_extension_manager->get_extension($ext_name);
+ if (!$extension->is_enableable())
+ {
+ trigger_error($user->lang['EXTENSION_NOT_ENABLEABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
+ }
+
if ($phpbb_extension_manager->is_enabled($ext_name))
{
redirect($this->u_action);
id=dc5b89880ce06483e77c0ba40a4e344b363bb5aa'>patch) tree1d7b9937a2f87b2311904d107f2d1bc4f8710beb /perl-install/share parent071b523e11c54dbd06ce1f0e1e70a408fed1b1ba (diff)downloaddrakx-dc5b89880ce06483e77c0ba40a4e344b363bb5aa.tar
drakx-dc5b89880ce06483e77c0ba40a4e344b363bb5aa.tar.gz
drakx-dc5b89880ce06483e77c0ba40a4e344b363bb5aa.tar.bz2
drakx-dc5b89880ce06483e77c0ba40a4e344b363bb5aa.tar.xz
drakx-dc5b89880ce06483e77c0ba40a4e344b363bb5aa.zip
update-po
Diffstat (limited to 'perl-install/share')