Ignore:
Timestamp:
Feb 2, 2013, 8:09:52 AM (11 years ago)
Author:
rvelices
Message:

feature 2831: simple way to protect urls of originals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r19703 r20516  
    267267add_event_handler('render_tag_url', 'str2url');
    268268add_event_handler('blockmanager_register_blocks', 'register_default_menubar_blocks', EVENT_HANDLER_PRIORITY_NEUTRAL-1);
     269if ( !empty($conf['original_url_protection']) )
     270{
     271  add_event_handler('get_element_url', 'get_element_url_protection_handler', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 );
     272  add_event_handler('get_src_image_url', 'get_src_image_url_protection_handler', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 );
     273}
    269274trigger_action('init');
    270275?>
Note: See TracChangeset for help on using the changeset viewer.