Changeset 15805


Ignore:
Timestamp:
Jun 17, 2012, 10:49:31 PM (8 years ago)
Author:
mistic100
Message:

none function was working

Location:
trunk/plugins/admin_multi_view
Files:
1 added
2 edited

Legend:

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

    r15150 r15805  
    3030  if (pwg_get_session_var( 'multiview_no_history', 0 ))
    3131    add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) );
    32 
    33   if (pwg_get_session_var( 'purge_template', 0 ))
    34   {
    35     global $template;
    36     $template->delete_compiled_templates();
    37     FileCombiner::clear_combined_files();
    38     pwg_unset_session_var( 'purge_template' );
    39   }
    4032}
    4133
  • trunk/plugins/admin_multi_view/main.inc.php

    r15150 r15805  
    3131*/
    3232
    33 add_event_handler('init', 'multiview_user_init' );
     33add_event_handler('user_init', 'multiview_user_init' );
     34add_event_handler('init', 'multiview_init' );
    3435
    3536function multiview_user_init()
     
    4041}
    4142
     43function multiview_init()
     44{
     45  if (!is_admin())
     46    return;
     47  include_once( dirname(__FILE__).'/is_admin_template.inc.php' );
     48}
     49
    4250?>
Note: See TracChangeset for help on using the changeset viewer.