add link to purge templates

git-svn-id: http://piwigo.org/svn/trunk@15150 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2012-05-20 13:10:53 +00:00
parent b527f0ccc2
commit 7f0e4a62f6
3 changed files with 17 additions and 4 deletions
+7
View File
@@ -103,6 +103,12 @@ if ( isset($_GET['no_history']) )
$refresh_main = true;
}
if ( isset($_GET['purge_template']) )
{
pwg_set_session_var( 'purge_template', 1 );
$refresh_main = true;
}
$my_url = get_root_url().'plugins/'.basename(dirname(__FILE__)).'/'.basename(__FILE__);
// +-----------------------------------------------------------------------+
@@ -238,6 +244,7 @@ if (window.opener==null) {
<tr><td>Lang</td><td><?php echo $lang_html; ?></td></tr>
</table>
<?php echo implode( "<br/>\n", array($show_queries_html, $debug_l10n_html, $debug_template_html, $template_combine_files_html, $no_history_html) ); ?>
<br/><a href="<?php echo $my_url; ?>?purge_template">Purge compiled templates</a>
<script type="text/javascript">
<?php