aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/admin_multi_view/controller.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-05-20 13:10:53 +0000
committermistic100 <mistic@piwigo.org>2012-05-20 13:10:53 +0000
commit7f0e4a62f66fc169d11890c96417b91d4eb4503b (patch)
treee66378001b418202b33261a6d9d81660ba52427a /plugins/admin_multi_view/controller.php
parentb527f0ccc24a5fe7b16c07d70d05ba2338962bd0 (diff)
add link to purge templates
git-svn-id: http://piwigo.org/svn/trunk@15150 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/admin_multi_view/controller.php')
-rw-r--r--plugins/admin_multi_view/controller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/admin_multi_view/controller.php b/plugins/admin_multi_view/controller.php
index 2c61a9bc6..ec9119162 100644
--- a/plugins/admin_multi_view/controller.php
+++ b/plugins/admin_multi_view/controller.php
@@ -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