Changeset 4537 for extensions/Juza/include
- Timestamp:
- Dec 20, 2009, 8:34:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Juza/include/functions.inc.php
r4516 r4537 43 43 return $src; 44 44 } 45 46 function remove_AkBookStyle_handlers() { 47 global $public_content; 48 remove_event_handler('loc_begin_index_thumbnails', array($public_content, 'loc_begin_index_thumbnails')); 49 remove_event_handler('loc_end_index_thumbnails', array($public_content, 'loc_end_index_thumbnails')); 50 remove_event_handler('loc_begin_index', array($public_content, 'page_force')); 51 remove_event_handler('loc_end_picture', array($public_content, 'loc_end_picture')); 52 } 53 45 54 function Juza_update() { 46 global $template, $conf ;55 global $template, $conf, $user; 47 56 $conf_Juza = Juza_default(); 48 57 if (isset($conf['Juza Config'])) $conf_Juza = array_merge($conf_Juza, unserialize($conf['Juza Config'])); … … 86 95 if ($conf['Juza_active']) $template->assign('Juza_active', true); 87 96 if ($conf_Juza['Juza_handlers']) $template->assign('Juza_handlers', 'checked="checked"'); 97 $user["expand"] = true; 98 $template->assign('Juza_cats', get_categories_menu()); 99 $user["expand"] = false; 88 100 $template->assign('Juza_width', $conf_Juza['Juza_width']); 89 101 $template->assign('Juza_height', $conf_Juza['Juza_height']);
Note: See TracChangeset
for help on using the changeset viewer.