diff options
| author | Vjacheslav Trushkin <arty@phpbb.com> | 2012-02-18 16:35:43 +0200 |
|---|---|---|
| committer | Vjacheslav Trushkin <arty@phpbb.com> | 2012-02-18 16:35:43 +0200 |
| commit | 162f9b738aaa74684ea42e3ce4d6a911a183a996 (patch) | |
| tree | 417dd79d9173e5fb95c40ff25af54923d28d26c0 | |
| parent | 625a1f2b20e77cbec4dd36605d4d3bf6e3273928 (diff) | |
| download | forums-162f9b738aaa74684ea42e3ce4d6a911a183a996.tar forums-162f9b738aaa74684ea42e3ce4d6a911a183a996.tar.gz forums-162f9b738aaa74684ea42e3ce4d6a911a183a996.tar.bz2 forums-162f9b738aaa74684ea42e3ce4d6a911a183a996.tar.xz forums-162f9b738aaa74684ea42e3ce4d6a911a183a996.zip | |
[feature/purge-cache] Allow all admins to purge cache
Allow all administrators to purge cache
PHPBB3-10659
| -rw-r--r-- | phpBB/adm/style/acp_main.html | 3 | ||||
| -rw-r--r-- | phpBB/includes/acp/acp_main.php | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/adm/style/acp_main.html b/phpBB/adm/style/acp_main.html index 11f7fedd38..63ca3a1c79 100644 --- a/phpBB/adm/style/acp_main.html +++ b/phpBB/adm/style/acp_main.html @@ -194,13 +194,14 @@ <dd><input type="hidden" name="action" value="purge_sessions" /><input class="button2" type="submit" id="action_purge_sessions" name="action_purge_sessions" value="{L_RUN}" /></dd> </dl> </form> + <!-- ENDIF --> + <form id="action_purge_cache_form" method="post" action="{U_ACTION}"> <dl> <dt><label for="action_purge_cache">{L_PURGE_CACHE}</label><br /><span>{L_PURGE_CACHE_EXPLAIN}</span></dt> <dd><input type="hidden" name="action" value="purge_cache" /><input class="button2" type="submit" id="action_purge_cache" name="action_purge_cache" value="{L_RUN}" /></dd> </dl> </form> - <!-- ENDIF --> </fieldset> <!-- ENDIF --> diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index b30c294ce2..7cdf734973 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -330,11 +330,6 @@ class acp_main break; case 'purge_cache': - if ((int) $user->data['user_type'] !== USER_FOUNDER) - { - trigger_error($user->lang['NO_AUTH_OPERATION'] . adm_back_link($this->u_action), E_USER_WARNING); - } - global $cache; $cache->purge(); |
