Commit 4e30823f authored by jonnybradley's avatar jonnybradley

[FIX] colorbox plugin: $filter['fileId'] is expected to be an array in...

[FIX] colorbox plugin: $filter['fileId'] is expected to be an array in $filegallib->get_files (not sure how this ever worked before, but it did somehow)
parent 0b3357f8
......@@ -142,7 +142,10 @@ function wikiplugin_colorbox($data, $params)
return tra('Permission denied');
}
if (empty($params['sort_mode'])) $params['sort_mode'] = 'created_desc';
$filter = empty($params['fileId'])? '': array('fileId'=> $params['fileId']);
$filter = empty($params['fileId'])? array(): array('fileId'=> $params['fileId']);
if (!is_array($filter['fileId'])) {
$filter['fileId'] = explode(':', $filter['fileId']);
}
$filegallib = TikiLib::lib('filegal');
$files = $filegallib->get_files(0, -1, $params['sort_mode'], '', $params['fgalId'], false, false, false, true, false, false, false, false, '', true, false, false, $filter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment