mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 18:01:31 +02:00
related to #1481 added feedback message for maintenance actions
This commit is contained in:
@@ -40,6 +40,7 @@ switch ($action)
|
||||
update_category('all');
|
||||
update_global_rank();
|
||||
invalidate_user_cache(true);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'images' :
|
||||
@@ -49,16 +50,19 @@ switch ($action)
|
||||
include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');
|
||||
update_rating_score();
|
||||
invalidate_user_cache();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'delete_orphan_tags' :
|
||||
{
|
||||
delete_orphan_tags();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'user_cache' :
|
||||
{
|
||||
invalidate_user_cache();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'history_detail' :
|
||||
@@ -68,6 +72,7 @@ DELETE
|
||||
FROM '.HISTORY_TABLE.'
|
||||
;';
|
||||
pwg_query($query);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'history_summary' :
|
||||
@@ -77,6 +82,7 @@ DELETE
|
||||
FROM '.HISTORY_SUMMARY_TABLE.'
|
||||
;';
|
||||
pwg_query($query);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'sessions' :
|
||||
@@ -121,7 +127,7 @@ DELETE
|
||||
;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'feeds' :
|
||||
@@ -132,6 +138,7 @@ DELETE
|
||||
WHERE last_check IS NULL
|
||||
;';
|
||||
pwg_query($query);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'database' :
|
||||
@@ -144,6 +151,7 @@ DELETE
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/check_integrity.class.php');
|
||||
$c13y = new check_integrity();
|
||||
$c13y->maintenance();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'search' :
|
||||
@@ -160,6 +168,7 @@ DELETE
|
||||
$template->delete_compiled_templates();
|
||||
FileCombiner::clear_combined_files();
|
||||
$persistent_cache->purge(true);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'derivatives':
|
||||
@@ -173,6 +182,7 @@ DELETE
|
||||
clear_derivative_cache($type_to_clear);
|
||||
}
|
||||
}
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -225,6 +235,7 @@ DELETE
|
||||
$page['infos'][] = l10n('You are running the latest version of Piwigo.');
|
||||
}
|
||||
}
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
}
|
||||
|
||||
default :
|
||||
|
||||
Reference in New Issue
Block a user