aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorrechosen <rechosen@gmail.com>2013-04-11 12:47:33 +0200
committerrechosen <rechosen@gmail.com>2013-04-11 13:13:50 +0200
commit694eb3ccb50c064acf7b3f9aba23620111b8814a (patch)
tree4633bc35e03881b2bea736f91014ec32194038d5 /phpBB/includes
parent52a0f32d99bf87075049600b15c40147ab698a61 (diff)
downloadforums-694eb3ccb50c064acf7b3f9aba23620111b8814a.tar
forums-694eb3ccb50c064acf7b3f9aba23620111b8814a.tar.gz
forums-694eb3ccb50c064acf7b3f9aba23620111b8814a.tar.bz2
forums-694eb3ccb50c064acf7b3f9aba23620111b8814a.tar.xz
forums-694eb3ccb50c064acf7b3f9aba23620111b8814a.zip
[ticket/11116] Made ACP "extension not available" error message E_USER_WARNING
The error message generated when an administrator tries to enable an incompatible extension used to be displayed in the green of the default E_USER_NOTICE. Changed it to E_USER_WARNING to make it appear in red, as requested in the ticket. PHPBB3-11116
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_extensions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index 24211196bd..e4f8059b45 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -81,7 +81,7 @@ class acp_extensions
case 'enable_pre':
if (!$md_manager->validate_enable())
{
- trigger_error($user->lang['EXTENSION_NOT_AVAILABLE'] . adm_back_link($this->u_action));
+ trigger_error($user->lang['EXTENSION_NOT_AVAILABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
}
if ($phpbb_extension_manager->enabled($ext_name))
@@ -100,7 +100,7 @@ class acp_extensions
case 'enable':
if (!$md_manager->validate_enable())
{
- trigger_error($user->lang['EXTENSION_NOT_AVAILABLE'] . adm_back_link($this->u_action));
+ trigger_error($user->lang['EXTENSION_NOT_AVAILABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
}
try