aboutsummaryrefslogtreecommitdiffstats
path: root/admin/maintenance.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-05 02:14:36 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-05 02:14:36 +0000
commita55cf25bdf2fc5b5056c5f25ecc5dd21ee17c245 (patch)
tree856a943a1df26450fc014890f0bad2c2b854edbd /admin/maintenance.php
parentd3fe45c5bd472329ba083e8ca467b5c17324712b (diff)
- added clear compiled templates maintenance task
- maintenance.tpl is smarty - some language cleanup git-svn-id: http://piwigo.org/svn/trunk@2251 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/maintenance.php')
-rw-r--r--admin/maintenance.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php
index 18d4bad92..eb71adda9 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -104,6 +104,12 @@ DELETE
$c13y->maintenance();
break;
}
+ case 'compiled-templates' :
+ {
+ $template->smarty->clear_compiled_tpl();
+ file_put_contents($template->smarty->compile_dir.'/index.htm', '');
+ break;
+ }
default :
{
break;
@@ -116,9 +122,9 @@ DELETE
$template->set_filenames(array('maintenance'=>'admin/maintenance.tpl'));
-$start_url = PHPWG_ROOT_PATH.'admin.php?page=maintenance&amp;action=';
+$start_url = get_root_url().'admin.php?page=maintenance&amp;action=';
-$template->assign_vars(
+$template->assign(
array(
'U_MAINT_CATEGORIES' => $start_url.'categories',
'U_MAINT_IMAGES' => $start_url.'images',
@@ -128,6 +134,7 @@ $template->assign_vars(
'U_MAINT_FEEDS' => $start_url.'feeds',
'U_MAINT_DATABASE' => $start_url.'database',
'U_MAINT_C13Y' => $start_url.'c13y',
+ 'U_MAINT_COMPILED_TEMPLATES' => $start_url.'compiled-templates',
'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=maintenance',
)
);