mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
[ticket/13612] Always display success message if extension was enabled
An error will already be triggered if enable_step() is not successful. Redirecting for no obvious reason will just confuse users. PHPBB3-13612
This commit is contained in:
parent
8314ce6871
commit
27cfda74fc
@ -174,11 +174,6 @@ class acp_extensions
|
||||
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);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
while ($phpbb_extension_manager->enable_step($ext_name))
|
||||
|
@ -422,14 +422,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
$meta_refresh = $crawler->filter('meta[http-equiv="refresh"]');
|
||||
}
|
||||
|
||||
if (!empty($meta_refresh))
|
||||
{
|
||||
$this->assertContainsLang('EXTENSIONS_ADMIN', $crawler->filter('.main > h1')->text());
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->assertContainsLang('EXTENSION_ENABLE_SUCCESS', $crawler->filter('div.successbox')->text());
|
||||
}
|
||||
$this->assertContainsLang('EXTENSION_ENABLE_SUCCESS', $crawler->filter('div.successbox')->text());
|
||||
|
||||
$this->logout();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user