feature #534, modernize admin home

* convert the big button "Quick Local Sync" into a simpler action link
* simplify the "quick sync" as a specific action on site_update.php
This commit is contained in:
plegall
2016-10-07 16:11:20 +02:00
parent 5dbc6c85a9
commit 56339a0601
3 changed files with 25 additions and 18 deletions
+18
View File
@@ -82,6 +82,24 @@ else
$site_reader = new LocalSiteReader($site_url);
}
// +-----------------------------------------------------------------------+
// | Quick sync |
// +-----------------------------------------------------------------------+
if (isset($_GET['quick_sync']))
{
check_pwg_token();
$_POST['sync'] = 'files';
$_POST['display_info'] = '1';
$_POST['add_to_caddie'] = '1';
$_POST['privacy_level'] = '0';
$_POST['sync_meta'] = '1';
$_POST['simulate'] = '0';
$_POST['subcats-included'] = '1';
$_POST['submit'] = 'Quick Local Synchronization';
}
$general_failure = true;
if (isset($_POST['submit']))
{