Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
ece84a04c5
8 changed files with 73 additions and 56 deletions
|
@ -824,12 +824,16 @@ class StoredFile {
|
|||
public static function listAllFiles($dir_id){
|
||||
global $CC_DBC;
|
||||
|
||||
$sql = "SELECT m.directory || '/' || f.filepath as fp"
|
||||
." FROM CC_MUSIC_DIRS m"
|
||||
." LEFT JOIN CC_FILES f"
|
||||
." ON m.id = f.directory"
|
||||
." WHERE m.id = f.directory"
|
||||
." AND m.id = $dir_id";
|
||||
// $sql = "SELECT m.directory || '/' || f.filepath as fp"
|
||||
// ." FROM CC_MUSIC_DIRS m"
|
||||
// ." LEFT JOIN CC_FILES f"
|
||||
// ." ON m.id = f.directory"
|
||||
// ." WHERE m.id = f.directory"
|
||||
// ." AND m.id = $dir_id";
|
||||
$sql = "SELECT filepath as fp"
|
||||
." FROM CC_FILES"
|
||||
." WHERE directory = $dir_id";
|
||||
|
||||
$rows = $CC_DBC->getAll($sql);
|
||||
|
||||
$results = array();
|
||||
|
@ -839,6 +843,5 @@ class StoredFile {
|
|||
|
||||
return $results;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue