diff options
Diffstat (limited to 'mod/import_items.php')
-rw-r--r-- | mod/import_items.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mod/import_items.php b/mod/import_items.php index 6b97939c9..df3afb3ea 100644 --- a/mod/import_items.php +++ b/mod/import_items.php @@ -84,16 +84,13 @@ function import_items_post(&$a) { } } - $channel = $a->get_channel(); + $channel = App::get_channel(); - $saved_notification_flags = notifications_off($channel['channel_id']); if(array_key_exists('item',$data) && $data['item']) { import_items($channel,$data['item']); } - notifications_on($channel['channel_id'],$saved_notification_flags); - if(array_key_exists('item_id',$data) && $data['item_id']) { import_item_ids($channel,$data['item_id']); } @@ -107,9 +104,6 @@ function import_items_post(&$a) { function import_items_content(&$a) { - - - if(! local_channel()) { notice( t('Permission denied') . EOL); return login(); |