ignore broken links so playback can go on

This commit is contained in:
nebojsa 2009-10-31 14:47:42 +00:00
parent 0456464ac0
commit 2e73d733f2
1 changed files with 3 additions and 1 deletions

View File

@ -369,11 +369,13 @@ class BasicStor {
$token = StoredFile::CreateGunid();
if (!is_null($realFname)) {
$linkFname = $CC_CONFIG['accessDir']."/$token.$ext";
if (!is_file($realFname) && !is_link($realFname)) {
//broken links are ignored by the player, do not worry about it here
/* if (!is_file($realFname) && !is_link($realFname)) {
return PEAR::raiseError(
"BasicStor::bsAccess: real file not found ($realFname)",
GBERR_FILEIO);
}
*/
if (! @symlink($realFname, $linkFname)) {
return PEAR::raiseError(
"BasicStor::bsAccess: symlink create failed ($linkFname)",