Changeset 15805 for trunk/plugins
- Timestamp:
- Jun 17, 2012, 10:49:31 PM (12 years ago)
- 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 30 30 if (pwg_get_session_var( 'multiview_no_history', 0 )) 31 31 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 }40 32 } 41 33 -
trunk/plugins/admin_multi_view/main.inc.php
r15150 r15805 31 31 */ 32 32 33 add_event_handler('init', 'multiview_user_init' ); 33 add_event_handler('user_init', 'multiview_user_init' ); 34 add_event_handler('init', 'multiview_init' ); 34 35 35 36 function multiview_user_init() … … 40 41 } 41 42 43 function multiview_init() 44 { 45 if (!is_admin()) 46 return; 47 include_once( dirname(__FILE__).'/is_admin_template.inc.php' ); 48 } 49 42 50 ?>
Note: See TracChangeset
for help on using the changeset viewer.