aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-07-10 22:00:36 +0000
committerrvelices <rv-github@modusoptimus.com>2007-07-10 22:00:36 +0000
commit71d516d1f20223a56c3a6c75fdb136165c74f345 (patch)
tree1c4f76fab9e8820a7d35a1fe0fd8ed4137460ffa /admin
parentbbd2ddd142ede55e3212008436634b016487799e (diff)
merge r2061 from branch 1.7 to trunk
feature 719 : Split purge history link into Purge summary and Purge details. - add a confirmation box when purging history git-svn-id: http://piwigo.org/svn/trunk@2062 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/maintenance.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php
index 49d97d8ce..7ee5f84e5 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -59,16 +59,20 @@ switch ($action)
update_average_rate();
break;
}
- case 'history' :
+ case 'history_detail' :
{
$query = '
DELETE
- FROM '.HISTORY_SUMMARY_TABLE.'
+ FROM '.HISTORY_TABLE.'
;';
pwg_query($query);
+ break;
+ }
+ case 'history_summary' :
+ {
$query = '
DELETE
- FROM '.HISTORY_TABLE.'
+ FROM '.HISTORY_SUMMARY_TABLE.'
;';
pwg_query($query);
break;
@@ -111,7 +115,8 @@ $template->assign_vars(
array(
'U_MAINT_CATEGORIES' => $start_url.'categories',
'U_MAINT_IMAGES' => $start_url.'images',
- 'U_MAINT_HISTORY' => $start_url.'history',
+ 'U_MAINT_HISTORY_DETAIL' => $start_url.'history_detail',
+ 'U_MAINT_HISTORY_SUMMARY' => $start_url.'history_summary',
'U_MAINT_SESSIONS' => $start_url.'sessions',
'U_MAINT_FEEDS' => $start_url.'feeds',
'U_MAINT_DATABASE' => $start_url.'database',