mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 00:42:20 +02:00
- remake of Remote sites and Synchronize:
- synchronization for remote and local sites are done by the same code - remote sites can update metadata now (not before) - bug 279 - fixes bug 82: has_high column - improve feature 280: user sort by filename - fix path to template mimetypes icons - bug 284: session cookie lifetime, deletion on logout and corrected issue when db upgrades were missing git-svn-id: http://piwigo.org/svn/trunk@1029 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user