diff options
author | ddtddt <ddtddt@piwigo.org> | 2009-07-04 19:05:48 +0000 |
---|---|---|
committer | ddtddt <ddtddt@piwigo.org> | 2009-07-04 19:05:48 +0000 |
commit | 3aab1e4125e60ccc400ee759c9cd9ae7b8398849 (patch) | |
tree | 5846ff90411cb205d3aedaa1d75758aeab2e7bbe /admin | |
parent | 153c32e8ff033b58a6c57fdf0187312cbb018445 (diff) |
bug 986 branche 2
git-svn-id: http://piwigo.org/svn/branches/2.0@3516 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/maintenance.php | 9 | ||||
-rw-r--r-- | admin/template/goto/maintenance.tpl | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php index ba6b718bb..9d991d924 100644 --- a/admin/maintenance.php +++ b/admin/maintenance.php @@ -100,6 +100,15 @@ DELETE $c13y->maintenance(); break; } + case 'search' : + { + $query = ' +DELETE + FROM '.SEARCH_TABLE.' +;'; + pwg_query($query); + break; + } case 'compiled-templates' : { $template->delete_compiled_templates(); diff --git a/admin/template/goto/maintenance.tpl b/admin/template/goto/maintenance.tpl index b37ec864e..908e62471 100644 --- a/admin/template/goto/maintenance.tpl +++ b/admin/template/goto/maintenance.tpl @@ -14,6 +14,7 @@ <li><a href="{$U_MAINT_HISTORY_SUMMARY}" onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'purge history summary'|@translate}</a></li> <li><a href="{$U_MAINT_SESSIONS}" {$TAG_INPUT_ENABLED}>{'purge sessions'|@translate}</a></li> <li><a href="{$U_MAINT_FEEDS}" {$TAG_INPUT_ENABLED}>{'purge never used notification feeds'|@translate}</a></li> + <li><a href="{$U_MAINT_SEARCH}"onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'Purge search history'|@translate}</a></li> <li><a href="{$U_MAINT_COMPILED_TEMPLATES}" {$TAG_INPUT_ENABLED}>{'Purge compiled templates'|@translate}</a></li> </ul> |