Ignore:
Timestamp:
Jul 10, 2012, 3:39:01 PM (12 years ago)
Author:
mistic100
Message:

-compatiblity with UserCollections
-don't crash for non-admin users (sic)

File:
1 edited

Legend:

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

    r16379 r16592  
    2020define('BATCH_DOWNLOAD_PUBLIC',  make_index_url(array('section' => 'download')) . '/');
    2121
     22
    2223if (class_exists('ZipArchive'))
    2324{
     
    2930  add_event_handler('loc_end_index', 'batch_download_clean');
    3031
    31   add_event_handler('loc_begin_index', 'batch_download_index_button');
     32  add_event_handler('loc_end_index', 'batch_download_index_button', EVENT_HANDLER_PRIORITY_NEUTRAL+10);
    3233
    3334  add_event_handler('blockmanager_register_blocks', 'batch_download_add_menublock');
     
    3839  require(BATCH_DOWNLOAD_PATH . 'include/events.inc.php');
    3940}
     41
    4042
    4143add_event_handler('get_admin_plugin_menu_links', 'batch_download_admin_menu');
Note: See TracChangeset for help on using the changeset viewer.