[add] full path for .hash file when import dir

This commit is contained in:
Knah Tsaeb 2013-08-13 09:34:03 +02:00
parent aff0176d18
commit f49dec12fa
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ function importDir($bc, $fullListDir, $fullListFile) {
);
$url = escapeshellcmd($value['url']);
$data = $key.' '.$url.' '.$path.$file['hash']."\n";
$data = $key.' '.$url.' '.$_SERVER['DOCUMENT_ROOT'].'/'.$GLOBALS['config']['VIDEODIR'].'/'.$path.$file['hash']."\n";
file_put_contents($GLOBALS['config']['TMPDIR'].'/'.$key.'.hash', $data);
}
file_put_contents($GLOBALS['config']['LISTFILE'], "<?php\n\$fullListFile=".var_export($fullListFile, true).";\n?>");