Changeset 8012 for trunk/plugins/admin_multi_view
- Timestamp:
- Dec 6, 2010, 9:52:44 PM (13 years ago)
- Location:
- trunk/plugins/admin_multi_view
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/admin_multi_view/controller.php
r6358 r8012 12 12 pwg_unset_session_var( 'multiview_debug_l10n' ); 13 13 pwg_unset_session_var( 'multiview_debug_template' ); 14 pwg_unset_session_var( 'multiview_template_combine_files' ); 14 15 pwg_unset_session_var( 'multiview_no_history' ); 15 16 ?> … … 85 86 $refresh_main = true; 86 87 } 88 89 if ( isset($_GET['template_combine_files']) ) 90 { 91 if ( $_GET['template_combine_files']==0 ) 92 pwg_set_session_var( 'multiview_template_combine_files', 0 ); 93 else 94 pwg_unset_session_var( 'multiview_template_combine_files' ); 95 $refresh_main = true; 96 } 97 87 98 88 99 if ( isset($_GET['no_history']) ) … … 195 206 196 207 // +-----------------------------------------------------------------------+ 208 // | template combine files | 209 $template_combine_files_html=''; 210 if ($conf['template_combine_files']) 211 { 212 if ( pwg_get_session_var( 'multiview_template_combine_files', 1 ) ) 213 $template_combine_files_html.='<a href="'.$my_url.'?template_combine_files=0">Don\'t combine js&css</a>'; 214 else 215 $template_combine_files_html.='<a href="'.$my_url.'?template_combine_files=1">Combine js&css</a>'; 216 } 217 218 // +-----------------------------------------------------------------------+ 197 219 // | no history | 198 220 $no_history_html=''; … … 225 247 <tr><td>Lang</td><td><?php echo $lang_html; ?></td></tr> 226 248 </table> 227 <?php echo implode( "<br/>\n", array($show_queries_html, $debug_l10n_html, $debug_template_html, $ no_history_html) ); ?>249 <?php echo implode( "<br/>\n", array($show_queries_html, $debug_l10n_html, $debug_template_html, $template_combine_files_html, $no_history_html) ); ?> 228 250 229 251 <script type="text/javascript"> -
trunk/plugins/admin_multi_view/is_admin.inc.php
r5128 r8012 26 26 if (pwg_get_session_var( 'multiview_debug_template', 0 )) 27 27 $conf['debug_template'] = true; 28 if (pwg_get_session_var( 'multiview_no_history', 0 )) 28 if (!pwg_get_session_var( 'multiview_template_combine_files', 1 )) 29 $conf['template_combine_files'] = false; 30 if (pwg_get_session_var( 'multiview_no_history', 0 )) 29 31 { 30 32 add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) );
Note: See TracChangeset
for help on using the changeset viewer.