aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_metadata.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions_metadata.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php
index 3979e0e40..23dca79a9 100644
--- a/admin/include/functions_metadata.php
+++ b/admin/include/functions_metadata.php
@@ -175,11 +175,13 @@ function update_metadata($files)
* path in the filesystem
*
* @param int id_uppercat
+ * @param int site_id
* @param boolean recursive ?
* @param boolean only newly added files ?
* @return array
*/
-function get_filelist($category_id = '', $recursive = false, $only_new = false)
+function get_filelist($category_id = '', $site_id=1, $recursive = false,
+ $only_new = false)
{
// filling $cat_ids : all categories required
$cat_ids = array();
@@ -187,7 +189,7 @@ function get_filelist($category_id = '', $recursive = false, $only_new = false)
$query = '
SELECT id
FROM '.CATEGORIES_TABLE.'
- WHERE site_id = 1
+ WHERE site_id = '.$site_id.'
AND dir IS NOT NULL';
if (is_numeric($category_id))
{