diff --git a/admin/maintenance_actions.php b/admin/maintenance_actions.php index 53a26059b..375eb73a8 100644 --- a/admin/maintenance_actions.php +++ b/admin/maintenance_actions.php @@ -254,6 +254,10 @@ $template->set_filenames(array('maintenance'=>'maintenance_actions.tpl')); $pwg_token = get_pwg_token(); $url_format = get_root_url().'admin.php?page=maintenance&action=%s&pwg_token='.get_pwg_token(); +if (!is_webmaster()) { + $page['warnings'][] = l10n('Webmaster status is required.'); +} + $purge_urls[l10n('All')] = 'all'; foreach(ImageStdParams::get_defined_type_map() as $params) { @@ -346,6 +350,8 @@ else ); } +$template->assign('isWebmaster', (is_webmaster()) ? 1 : 0); + // +-----------------------------------------------------------------------+ // | Define advanced features | // +-----------------------------------------------------------------------+ diff --git a/admin/themes/default/template/maintenance_actions.tpl b/admin/themes/default/template/maintenance_actions.tpl index ae7d46b3d..51c03d2d1 100644 --- a/admin/themes/default/template/maintenance_actions.tpl +++ b/admin/themes/default/template/maintenance_actions.tpl @@ -113,6 +113,8 @@ $(".delete-size-check").click( function () { {combine_script id='ajax' load='footer' path='admin/themes/default/js/maintenance.js'} +{if $isWebmaster == 1} +
Global Gallery Actions
@@ -191,6 +193,7 @@ $(".delete-size-check").click( function () { {'Delete these sizes'|@translate}
+{/if}