- 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
This commit is contained in:
parent
d3fe45c5bd
commit
a55cf25bdf
11 changed files with 30 additions and 62 deletions
|
|
@ -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&action=';
|
||||
$start_url = get_root_url().'admin.php?page=maintenance&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',
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue