Ignore:
Timestamp:
Jun 12, 2011, 7:54:34 PM (13 years ago)
Author:
mistic100
Message:

private items are not displayed in SmartAlbums (according to user permissions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/main.inc.php

    r11290 r11334  
    1616define('CATEGORY_FILTERS_TABLE', $prefixeTable.'category_filters');
    1717
    18 if (script_basename() == 'admin')
     18if (script_basename() == 'index')
     19{
     20  add_event_handler('loc_end_section_init', 'smart_init_page_items');
     21  include_once(SMART_PATH.'include/init_page_items.php');
     22}
     23else if (script_basename() == 'admin')
    1924{
    2025  load_language('plugin.lang', SMART_PATH);
    2126 
    22   add_event_handler('loc_begin_cat_modify', 'smart_init_cat_modify');
    23   function smart_init_cat_modify()
    24   {
    25     include_once(SMART_PATH.'init_cat_modify.php');
    26     smart_cat_modify();
    27   }
     27  add_event_handler('loc_begin_cat_modify', 'smart_cat_modify');
     28  include_once(SMART_PATH.'include/init_cat_modify.php');
    2829 
    29   add_event_handler('loc_begin_cat_list', 'smart_init_cat_list');
    30   function smart_init_cat_list()
    31   {
    32     include_once(SMART_PATH.'init_cat_list.php');
    33     smart_cat_list();
    34   }
     30  add_event_handler('loc_begin_cat_list', 'smart_cat_list');
     31  include_once(SMART_PATH.'include/init_cat_list.php');
    3532}
    3633
Note: See TracChangeset for help on using the changeset viewer.