mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 07:27:17 +02:00
[ticket/10631] Stagger the enable/disable/purge for extensions
PHPBB3-10631
This commit is contained in:
parent
bf6e91b5f3
commit
28ca2d6a5f
@ -16,7 +16,11 @@
|
||||
<input class="button1" type="submit" name="{L_DISABLE}" value="{L_DISABLE}" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- ELSE IF -->
|
||||
<!-- ELSEIF S_NEXT_STEP -->
|
||||
<div class="errorbox">
|
||||
<p>{L_DISABLE_IN_PROGRESS}</p>
|
||||
</div>
|
||||
<!-- ELSE -->
|
||||
<div class="successbox">
|
||||
<p>{L_DISABLE_SUCCESS}</p>
|
||||
<br />
|
||||
|
@ -16,7 +16,11 @@
|
||||
<input class="button1" type="submit" name="{L_ENABLE}" value="{L_ENABLE}" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- ELSE IF -->
|
||||
<!-- ELSEIF S_NEXT_STEP -->
|
||||
<div class="errorbox">
|
||||
<p>{L_ENABLE_IN_PROGRESS}</p>
|
||||
</div>
|
||||
<!-- ELSE -->
|
||||
<div class="successbox">
|
||||
<p>{L_ENABLE_SUCCESS}</p>
|
||||
<br />
|
||||
|
@ -16,7 +16,11 @@
|
||||
<input class="button1" type="submit" name="{L_PURGE}" value="{L_PURGE}" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- ELSE IF -->
|
||||
<!-- ELSEIF S_NEXT_STEP -->
|
||||
<div class="errorbox">
|
||||
<p>{L_PURGE_IN_PROGRESS}</p>
|
||||
</div>
|
||||
<!-- ELSE -->
|
||||
<div class="successbox">
|
||||
<p>{L_PURGE_SUCCESS}</p>
|
||||
<br />
|
||||
|
@ -56,7 +56,12 @@ class acp_extensions
|
||||
break;
|
||||
|
||||
case 'enable':
|
||||
$phpbb_extension_manager->enable($ext_name);
|
||||
if ($phpbb_extension_manager->enable_step($ext_name))
|
||||
{
|
||||
$template->assign_var('S_NEXT_STEP', true);
|
||||
|
||||
meta_refresh(0, $this->u_action . '&action=enable&ext_name=' . $ext_name);
|
||||
}
|
||||
|
||||
$this->tpl_name = 'acp_ext_enable';
|
||||
|
||||
@ -75,7 +80,12 @@ class acp_extensions
|
||||
break;
|
||||
|
||||
case 'disable':
|
||||
$phpbb_extension_manager->disable($ext_name);
|
||||
if ($phpbb_extension_manager->disable_step($ext_name))
|
||||
{
|
||||
$template->assign_var('S_NEXT_STEP', true);
|
||||
|
||||
meta_refresh(0, $this->u_action . '&action=disable&ext_name=' . $ext_name);
|
||||
}
|
||||
|
||||
$this->tpl_name = 'acp_ext_disable';
|
||||
|
||||
@ -94,7 +104,12 @@ class acp_extensions
|
||||
break;
|
||||
|
||||
case 'purge':
|
||||
$phpbb_extension_manager->purge($ext_name);
|
||||
if ($phpbb_extension_manager->purge_step($ext_name))
|
||||
{
|
||||
$template->assign_var('S_NEXT_STEP', true);
|
||||
|
||||
meta_refresh(0, $this->u_action . '&action=purge&ext_name=' . $ext_name);
|
||||
}
|
||||
|
||||
$this->tpl_name = 'acp_ext_purge';
|
||||
|
||||
|
@ -60,10 +60,13 @@ $lang = array_merge($lang, array(
|
||||
'PURGE_EXPLAIN' => 'Purging an extension clears an extensions data while retaining its files.',
|
||||
'DELETE_EXPLAIN' => 'Deleting an extension removes all of its files and settings. Log entries will remain, although any language variables added by the extension will not be available.',
|
||||
|
||||
'ENABLE_SUCESS' => 'The extension was enabled successfully',
|
||||
'DISABLE_SUCESS' => 'The extension was disabled successfully',
|
||||
'PURGE_SUCESS' => 'The extension was purged successfully',
|
||||
'DELETE_SUCESS' => 'The extension was deleted successfully',
|
||||
'DISABLE_IN_PROGRESS' => 'The extension is currently being disabled, please do not leave this page or refresh until it is completed.',
|
||||
'ENABLE_IN_PROGRESS' => 'The extension is currently being installed, please do not leave this page or refresh until it is completed.',
|
||||
'PURGE_IN_PROGRESS' => 'The extension is currently being purged, please do not leave this page or refresh until it is completed.',
|
||||
'ENABLE_SUCCESS' => 'The extension was enabled successfully',
|
||||
'DISABLE_SUCCESS' => 'The extension was disabled successfully',
|
||||
'PURGE_SUCCESS' => 'The extension was purged successfully',
|
||||
'DELETE_SUCCESS' => 'The extension was deleted successfully',
|
||||
|
||||
'ENABLE_FAIL' => 'The extension could not be enabled',
|
||||
'DISABLE_FAIL' => 'The extension could not be disabled',
|
||||
|
Loading…
x
Reference in New Issue
Block a user