Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
This commit is contained in:
commit
1455fa6bc3
@ -722,6 +722,9 @@ class Apps {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
|
$hookinfo = Array('uid'=>$uid,'deleted'=>$deleted,'cats'=>$cats,'apps'=>$r);
|
||||||
|
call_hooks('app_list',$hookinfo);
|
||||||
|
$r = $hookinfo['apps'];
|
||||||
for($x = 0; $x < count($r); $x ++) {
|
for($x = 0; $x < count($r); $x ++) {
|
||||||
if(! $r[$x]['app_system'])
|
if(! $r[$x]['app_system'])
|
||||||
$r[$x]['type'] = 'personal';
|
$r[$x]['type'] = 'personal';
|
||||||
|
@ -1428,6 +1428,8 @@ function attach_delete($channel_id, $resource, $is_photo = 0) {
|
|||||||
|
|
||||||
if(! $r) {
|
if(! $r) {
|
||||||
attach_drop_photo($channel_id,$resource);
|
attach_drop_photo($channel_id,$resource);
|
||||||
|
$arr = ['channel_id' => $channel_id, 'resource' => $resource, 'is_photo'=>$is_photo];
|
||||||
|
call_hooks("attach_delete",$arr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1486,6 +1488,9 @@ function attach_delete($channel_id, $resource, $is_photo = 0) {
|
|||||||
intval($channel_id)
|
intval($channel_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$arr = ['channel_id' => $channel_id, 'resource' => $resource, 'is_photo'=>$is_photo];
|
||||||
|
call_hooks("attach_delete",$arr);
|
||||||
|
|
||||||
file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', true);
|
file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', true);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -37,7 +37,13 @@ function replace_macros($s, $r) {
|
|||||||
call_hooks('replace_macros', $arr);
|
call_hooks('replace_macros', $arr);
|
||||||
|
|
||||||
$t = App::template_engine();
|
$t = App::template_engine();
|
||||||
$output = $t->replace_macros($arr['template'], $arr['params']);
|
|
||||||
|
try {
|
||||||
|
$output = $t->replace_macros($arr['template'], $arr['params']);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
logger("Unable to render template: ",$e->getMessage());
|
||||||
|
$output = "<h3>ERROR: there was an error creating the output.</h3>";
|
||||||
|
}
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user