CC-3350: Upgrade 1.8.2 to 2.0.1 doesnt preserve recorded files names when the Airtime stor directory is a symlink
-fixed?
This commit is contained in:
parent
54f81ca5de
commit
428d836d4e
1 changed files with 12 additions and 1 deletions
|
@ -617,7 +617,18 @@ class Airtime190Upgrade{
|
|||
|
||||
echo "Save DbMd to File".PHP_EOL;
|
||||
|
||||
$stor_dir = realpath($values['general']['base_files_dir']."/stor");
|
||||
|
||||
/* Do not use realpath. It expands a symlinked path into its real path
|
||||
* which then causes us problems for string comparisons later on. */
|
||||
//$stor_dir = realpath($values['general']['base_files_dir']."/stor");
|
||||
|
||||
$baseDir = $values['general']['base_files_dir'];
|
||||
if ($baseDir[strlen($baseDir)-1] != '/'){
|
||||
$baseDir.='/';
|
||||
}
|
||||
|
||||
$stor_dir = $baseDir.'stor';
|
||||
|
||||
|
||||
$files = CcFilesQuery::create()
|
||||
->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue