diff options
Diffstat (limited to 'mod/impel.php')
-rw-r--r-- | mod/impel.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/mod/impel.php b/mod/impel.php index 4700aaec5..494a3a5c2 100644 --- a/mod/impel.php +++ b/mod/impel.php @@ -113,17 +113,18 @@ function impel_init(&$a) { } $x = item_store($arr,$execflag); } - if($x['success']) + if($x['success']) { $item_id = $x['item_id']; + update_remote_id($channel,$item_id,$arr['item_restrict'],$pagetitle,$namespace,$remote_id,$arr['mid']); + $ret['success'] = true; + info( sprintf( t('%s element installed'), $installed_type)); + } + else { + notice( sprintf( t('%s element installation failed'), $installed_type)); + } - update_remote_id($channel,$item_id,$arr['item_restrict'],$pagetitle,$namespace,$remote_id,$arr['mid']); - - - $ret['success'] = true; - - info( sprintf( t('%s element installed'), $installed_type)); - +//??? should perhaps return ret? json_return_and_die(true); } |