aboutsummaryrefslogtreecommitdiffstats
path: root/admin/maintenance.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-01-19 13:19:16 +0000
committerplegall <plg@piwigo.org>2011-01-19 13:19:16 +0000
commit1b7781c8669ac98d656b57f4b540ef0fa818a94a (patch)
tree47a7db98b607a4ee477b77df56e8d54576a8566a /admin/maintenance.php
parente338363331de40ce04b70d7936cb901f52f88fe0 (diff)
feature 1289 added: easy "delete orphan tags" function. On the "tags"
administration page, a warning message is displayed if you have at least one orphan tag + direct action to delete them. git-svn-id: http://piwigo.org/svn/trunk@8762 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/maintenance.php')
-rw-r--r--admin/maintenance.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php
index d6aacc843..d9e7b113d 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -55,6 +55,11 @@ switch ($action)
update_average_rate();
break;
}
+ case 'delete_orphan_tags' :
+ {
+ delete_orphan_tags();
+ break;
+ }
case 'history_detail' :
{
$query = '
@@ -133,13 +138,14 @@ $template->assign(
array(
'U_MAINT_CATEGORIES' => $start_url.'categories',
'U_MAINT_IMAGES' => $start_url.'images',
+ 'U_MAINT_ORPHAN_TAGS' => $start_url.'delete_orphan_tags',
'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',
'U_MAINT_C13Y' => $start_url.'c13y',
- 'U_MAINT_SEARCH' => $start_url.'search',
+ 'U_MAINT_SEARCH' => $start_url.'search',
'U_MAINT_COMPILED_TEMPLATES' => $start_url.'compiled-templates',
'U_HELP' => get_root_url().'admin/popuphelp.php?page=maintenance',
)