1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02: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:
Marc Alexander
2015-02-14 23:32:17 +01:00
parent 8314ce6871
commit 27cfda74fc
2 changed files with 1 additions and 13 deletions

View File

@@ -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();
}