mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-20 12:13:16 +00:00
Remove precache actions from admin
This commit is contained in:
15
admin.php
15
admin.php
@@ -30,20 +30,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['bratonien_tool']))
|
|||||||
{
|
{
|
||||||
$messages[] = $result['message'];
|
$messages[] = $result['message'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($tool_id, array(
|
|
||||||
'watermark_save',
|
|
||||||
'watermark_engine',
|
|
||||||
'watermark_profile_save',
|
|
||||||
'watermark_profile_delete',
|
|
||||||
'watermark_profile_duplicate',
|
|
||||||
'watermark_defaults',
|
|
||||||
'watermark_rule',
|
|
||||||
), true))
|
|
||||||
{
|
|
||||||
bratonien_tools_request_watermark_precache();
|
|
||||||
$messages[] = 'Wasserzeichen-Precache wurde vorgemerkt.';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Throwable $e)
|
catch (Throwable $e)
|
||||||
{
|
{
|
||||||
@@ -129,7 +115,6 @@ $template->assign(array(
|
|||||||
'WATERMARK_DEFAULTS' => $defaults,
|
'WATERMARK_DEFAULTS' => $defaults,
|
||||||
'WATERMARK_CATEGORIES' => $categories,
|
'WATERMARK_CATEGORIES' => $categories,
|
||||||
'WATERMARK_ENGINE' => $engine,
|
'WATERMARK_ENGINE' => $engine,
|
||||||
'PRECACHE_STATUS_URL' => get_root_url().'plugins/'.BRATONIEN_TOOLS_ID.'/precache-status.php',
|
|
||||||
));
|
));
|
||||||
|
|
||||||
$template->set_filename('plugin_admin_content', BRATONIEN_TOOLS_PATH . 'template/admin.tpl');
|
$template->set_filename('plugin_admin_content', BRATONIEN_TOOLS_PATH . 'template/admin.tpl');
|
||||||
|
|||||||
Reference in New Issue
Block a user