Ignore:
Timestamp:
Dec 8, 2013, 2:53:40 PM (10 years ago)
Author:
mistic100
Message:

photo owner has access to quick edit and delete !

File:
1 edited

Legend:

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

    r25818 r25845  
    3939add_event_handler('register_user', array('MultiView', 'invalidate_cache'));
    4040
     41if (!defined('IN_ADMIN'))
     42{
     43  add_event_handler('loc_after_page_header', 'admintools_add_public_controller');
     44  add_event_handler('loc_begin_picture', 'admintools_save_picture');
     45  add_event_handler('loc_begin_index', 'admintools_save_category');
     46}
     47
    4148
    4249// +-----------------------------------------------------------------------+
     
    4653{
    4754  global $MultiView;
    48  
    49   if (!defined('IN_ADMIN') && $MultiView->is_admin())
    50   {
    51     add_event_handler('loc_after_page_header', 'admintools_add_public_controller');
    52     add_event_handler('loc_begin_picture', 'admintools_save_picture');
    53     add_event_handler('loc_begin_index', 'admintools_save_category');
    54   }
    55  
     55
    5656  load_language('plugin.lang', ADMINTOOLS_PATH);
    5757
     
    6161  // $maintain = new AdminTools_maintain(ADMINTOOLS_ID);
    6262  // $maintain->autoUpdate(ADMINTOOLS_VERSION, 'install');
    63  
     63
    6464  // $conf['AdminTools'] = unserialize($conf['AdminTools']);
    6565}
Note: See TracChangeset for help on using the changeset viewer.