Ignore:
Timestamp:
May 20, 2012, 3:10:53 PM (12 years ago)
Author:
mistic100
Message:

add link to purge templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/admin_multi_view/is_admin.inc.php

    r8012 r15150  
    2828  if (!pwg_get_session_var( 'multiview_template_combine_files', 1 ))
    2929    $conf['template_combine_files'] = false;
    30                 if (pwg_get_session_var( 'multiview_no_history', 0 ))
     30  if (pwg_get_session_var( 'multiview_no_history', 0 ))
     31    add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) );
     32
     33  if (pwg_get_session_var( 'purge_template', 0 ))
    3134  {
    32     add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) );
     35    global $template;
     36    $template->delete_compiled_templates();
     37    FileCombiner::clear_combined_files();
     38    pwg_unset_session_var( 'purge_template' );
    3339  }
    3440}
     
    4248  $js =
    4349'<script type="text/javascript">
    44 var theController = window.open("", "mview_controller", "alwaysRaised=yes,dependent=yes,toolbar=no,height=200,width=220,menubar=no,resizable=yes,scrollbars=yes,status=no");
     50var theController = window.open("", "mview_controller", "alwaysRaised=yes,dependent=yes,toolbar=no,height=230,width=220,menubar=no,resizable=yes,scrollbars=yes,status=no");
    4551if ( theController.location.toString()=="about:blank" || !theController.location.toString().match(/^(https?.*\/)controller\.php(\?.+)?$/))
    4652{
Note: See TracChangeset for help on using the changeset viewer.