diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-17 11:26:18 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-17 11:26:18 +0100 |
commit | 256472f9eb3a1c929e5b43e2b6eb3bf0b0d5afe6 (patch) | |
tree | 1f6778002328b27066ba86910f3f87bd060d6660 /mod | |
parent | af8449cef83376c65ff5ae9092dbe69f89294e69 (diff) | |
parent | 9b3b2efe9aa374565c0c67bbc67c36f9c99d3add (diff) | |
download | volse-hubzilla-256472f9eb3a1c929e5b43e2b6eb3bf0b0d5afe6.tar.gz volse-hubzilla-256472f9eb3a1c929e5b43e2b6eb3bf0b0d5afe6.tar.bz2 volse-hubzilla-256472f9eb3a1c929e5b43e2b6eb3bf0b0d5afe6.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod')
-rw-r--r-- | mod/import_items.php | 6 | ||||
-rw-r--r-- | mod/item.php | 2 | ||||
-rw-r--r-- | mod/pdledit.php | 1 |
3 files changed, 2 insertions, 7 deletions
diff --git a/mod/import_items.php b/mod/import_items.php index 6b97939c9..f369ad780 100644 --- a/mod/import_items.php +++ b/mod/import_items.php @@ -86,14 +86,11 @@ function import_items_post(&$a) { $channel = $a->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(); diff --git a/mod/item.php b/mod/item.php index b6d00e030..f100c9dfe 100644 --- a/mod/item.php +++ b/mod/item.php @@ -446,7 +446,7 @@ function item_post(&$a) { $execflag = false; - if($mimetype === 'application/x-php') { + if($mimetype !== 'text/bbcode') { $z = q("select account_id, account_roles, channel_pageflags from account left join channel on channel_account_id = account_id where channel_id = %d limit 1", intval($profile_uid) ); diff --git a/mod/pdledit.php b/mod/pdledit.php index 93b8d52e6..f2a25566a 100644 --- a/mod/pdledit.php +++ b/mod/pdledit.php @@ -10,6 +10,7 @@ function pdledit_post(&$a) { goaway(z_root() . '/pdledit/' . $_REQUEST['module']); } set_pconfig(local_channel(),'system','mod_' . $_REQUEST['module'] . '.pdl',escape_tags($_REQUEST['content'])); + build_sync_packet(); info( t('Layout updated.') . EOL); goaway(z_root() . '/pdledit/' . $_REQUEST['module']); } |