Formatting, and making a note about a bug
This commit is contained in:
parent
482d0052b3
commit
55688910d5
|
@ -1224,10 +1224,10 @@ class BasicStor extends Alib {
|
||||||
require_once("LsPlaylist.php");
|
require_once("LsPlaylist.php");
|
||||||
$ac = $r = LsPlaylist::recallByGunid($this, $it['gunid']);
|
$ac = $r = LsPlaylist::recallByGunid($this, $it['gunid']);
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case"smil":
|
case "smil":
|
||||||
$string = $r = $ac->outputToSmil();
|
$string = $r = $ac->outputToSmil();
|
||||||
break;
|
break;
|
||||||
case"m3u":
|
case "m3u":
|
||||||
$string = $r = $ac->outputToM3u();
|
$string = $r = $ac->outputToM3u();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -1474,6 +1474,7 @@ class BasicStor extends Alib {
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* Local ID of folder
|
* Local ID of folder
|
||||||
* @return array
|
* @return array
|
||||||
|
* @todo THERE IS A BUG IN THIS FUNCTION
|
||||||
*/
|
*/
|
||||||
public function bsListFolder($id)
|
public function bsListFolder($id)
|
||||||
{
|
{
|
||||||
|
@ -1503,7 +1504,9 @@ class BasicStor extends Alib {
|
||||||
return $listArr[$i]['type'];
|
return $listArr[$i]['type'];
|
||||||
}
|
}
|
||||||
$listArr[$i]['gunid'] = $gunid;
|
$listArr[$i]['gunid'] = $gunid;
|
||||||
if (StoredFIle::_getState($gunid) == 'incomplete') {
|
|
||||||
|
// THE BUG IS HERE - "_getState()" IS NOT A STATIC FUNCTION!
|
||||||
|
if (StoredFile::_getState($gunid) == 'incomplete') {
|
||||||
unset($listArr[$i]);
|
unset($listArr[$i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue