diff options
author | ddtddt <ddtddt@piwigo.org> | 2009-07-04 19:20:40 +0000 |
---|---|---|
committer | ddtddt <ddtddt@piwigo.org> | 2009-07-04 19:20:40 +0000 |
commit | fcf338369e6dd84af1814691a5ef9bf4a8985b8c (patch) | |
tree | d119f71e322686bb09eb18c96987ae0048fbfb17 /admin | |
parent | cc285fa7314d9b48a73669fa2d2df0b4cbf43514 (diff) |
merge 3516 Br2.0 -> trunk
git-svn-id: http://piwigo.org/svn/trunk@3517 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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 2e10a5828..d43571e00 100644 --- a/admin/template/goto/maintenance.tpl +++ b/admin/template/goto/maintenance.tpl @@ -13,6 +13,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> |