file sync testing

This commit is contained in:
redmatrix 2016-04-06 18:38:48 -07:00
parent 64cc0b794a
commit 6650916435
2 changed files with 5 additions and 2 deletions

View File

@ -1859,8 +1859,8 @@ function attach_export_data($channel,$resource_id) {
intval($channel['channel_id'])
);
if($r) {
foreach($r as $rr) {
$rr['data'] = base64_encode($rr['data']);
for($x = 0; $x < count($r); $x ++) {
$r[$x]['data'] = base64_encode($r[$x]['data']);
}
$ret['photo'] = $r;
}

View File

@ -3138,6 +3138,9 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
if(array_key_exists('menu',$arr) && $arr['menu'])
sync_menus($channel,$arr['menu']);
if(array_key_exists('file',$arr) && $arr['file'])
sync_files($channel,$arr['file']);
if(array_key_exists('channel',$arr) && is_array($arr['channel']) && count($arr['channel'])) {
if(array_key_exists('channel_pageflags',$arr['channel']) && intval($arr['channel']['channel_pageflags'])) {