Changeset 2223 for trunk/plugins/admin_multi_view
- Timestamp:
- Feb 28, 2008, 3:41:48 AM (17 years ago)
- Location:
- trunk/plugins/admin_multi_view
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/admin_multi_view/controller.php
r2127 r2223 11 11 pwg_unset_session_var( 'multiview_show_queries' ); 12 12 pwg_unset_session_var( 'multiview_debug_l10n' ); 13 pwg_unset_session_var( 'multiview_debug_template' ); 13 14 ?> 14 15 … … 69 70 } 70 71 72 73 if ( isset($_GET['debug_template']) ) 74 { 75 if ( $_GET['debug_template']>0 ) 76 pwg_set_session_var( 'multiview_debug_template', 1 ); 77 else 78 pwg_unset_session_var( 'multiview_debug_template' ); 79 $refresh_main = true; 80 } 81 71 82 $my_url = get_root_url().'plugins/'.basename(dirname(__FILE__)).'/'.basename(__FILE__); 72 83 $my_template = ''; … … 110 121 111 122 $debug_l10n_html=''; 112 if (!$conf[' show_queries'])123 if (!$conf['debug_l10n']) 113 124 { 114 125 $debug_l10n_html = '<br/>'; … … 118 129 $debug_l10n_html.='<a href="'.$my_url.'?debug_l10n=0">Revert debug language</a>'; 119 130 } 131 132 $debug_template_html=''; 133 if (!$conf['debug_template']) 134 { 135 $debug_template_html = '<br/>'; 136 if ( !pwg_get_session_var( 'multiview_debug_template', 0 ) ) 137 $debug_template_html.='<a href="'.$my_url.'?debug_template=1">Debug template</a>'; 138 else 139 $debug_template_html.='<a href="'.$my_url.'?debug_template=0">Revert debug template</a>'; 140 } 141 120 142 ?> 121 143 <html> … … 157 179 <?php echo $show_queries_html; ?> 158 180 <?php echo $debug_l10n_html; ?> 181 <?php echo $debug_template_html; ?> 159 182 160 183 <script type="text/javascript"> -
trunk/plugins/admin_multi_view/is_admin.inc.php
r2108 r2223 24 24 if (pwg_get_session_var( 'multiview_debug_l10n', 0 )) 25 25 $conf['debug_l10n'] = true; 26 if (pwg_get_session_var( 'multiview_debug_template', 0 )) 27 $conf['debug_template'] = true; 26 28 } 27 29
Note: See TracChangeset
for help on using the changeset viewer.