mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
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:
@@ -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']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user