clone systems apps to the extent possible, auto-configure imagick thumbnail binary during setup if possible

This commit is contained in:
zotlabs
2019-03-17 17:56:29 -07:00
parent 136b2ae37f
commit 026b96b8f2
4 changed files with 108 additions and 1 deletions

View File

@@ -948,6 +948,18 @@ function identity_basic_export($channel_id, $sections = null) {
}
$ret['app'] = $r;
}
$r = q("select * from app where app_channel = %d and app_system = 1",
intval($channel_id)
);
if($r) {
for($x = 0; $x < count($r); $x ++) {
$r[$x]['term'] = q("select * from term where otype = %d and oid = %d",
intval(TERM_OBJ_APP),
intval($r[$x]['id'])
);
}
$ret['sysapp'] = $r;
}
}
if(in_array('chatrooms',$sections)) {