CC-2595 : Apache error when addWatchedDir() from MusicDir.php is called
need to make this work for new installs.
This commit is contained in:
parent
b46abe0234
commit
8b9cfd7cfa
|
@ -150,6 +150,9 @@ class MusicDir {
|
|||
->filterByType('link')
|
||||
->findOne();
|
||||
|
||||
//see if any linked files exist.
|
||||
if (isset($propel_link_dir)) {
|
||||
|
||||
//newly added watched directory object
|
||||
$propel_new_watch = CcMusicDirsQuery::create()
|
||||
->filterByDirectory(realpath($p_path)."/")
|
||||
|
@ -177,6 +180,7 @@ class MusicDir {
|
|||
$link_file->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$data = array();
|
||||
$data["directory"] = $p_path;
|
||||
|
|
Loading…
Reference in New Issue