From 8689ab3e1b612f248a4015f6e2e019f5e87fd898 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 20 Mar 2014 18:48:08 +0100 Subject: [PATCH] Now changing categories also changes them in the term table. --- mod/item.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/item.php b/mod/item.php index 7d8492bb21..346f1a0564 100644 --- a/mod/item.php +++ b/mod/item.php @@ -143,7 +143,7 @@ function item_post(&$a) { if((x($_REQUEST,'commenter')) && ((! $parent) || (! $parent_item['wall']))) { notice( t('Permission denied.') . EOL) ; - if(x($_REQUEST,'return')) + if(x($_REQUEST,'return')) goaway($a->get_baseurl() . "/" . $return_path ); killme(); } @@ -708,6 +708,10 @@ function item_post(&$a) { intval($profile_uid) ); + create_tags_from_item($post_id); + create_files_from_item($post_id); + update_thread($post_id); + // update filetags in pconfig file_tag_update_pconfig($uid,$categories_old,$categories_new,'category');