mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch '3.1.x'
This commit is contained in:
commit
9e66a10bac
2 changed files with 12 additions and 5 deletions
|
@ -174,11 +174,6 @@ class acp_extensions
|
||||||
trigger_error($user->lang['EXTENSION_NOT_ENABLEABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
|
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
|
try
|
||||||
{
|
{
|
||||||
while ($phpbb_extension_manager->enable_step($ext_name))
|
while ($phpbb_extension_manager->enable_step($ext_name))
|
||||||
|
|
|
@ -416,6 +416,18 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
$form = $crawler->selectButton('Enable')->form();
|
$form = $crawler->selectButton('Enable')->form();
|
||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
$this->add_lang('acp/extensions');
|
$this->add_lang('acp/extensions');
|
||||||
|
|
||||||
|
$meta_refresh = $crawler->filter('meta[http-equiv="refresh"]');
|
||||||
|
|
||||||
|
// Wait for extension to be fully enabled
|
||||||
|
while (sizeof($meta_refresh))
|
||||||
|
{
|
||||||
|
preg_match('#url=.+/(adm+.+)#', $meta_refresh->attr('content'), $match);
|
||||||
|
$url = $match[1];
|
||||||
|
$crawler = self::request('POST', $url);
|
||||||
|
$meta_refresh = $crawler->filter('meta[http-equiv="refresh"]');
|
||||||
|
}
|
||||||
|
|
||||||
$this->assertContainsLang('EXTENSION_ENABLE_SUCCESS', $crawler->filter('div.successbox')->text());
|
$this->assertContainsLang('EXTENSION_ENABLE_SUCCESS', $crawler->filter('div.successbox')->text());
|
||||||
|
|
||||||
$this->logout();
|
$this->logout();
|
||||||
|
|
Loading…
Add table
Reference in a new issue