CC-2595 : Apache error when addWatchedDir() from MusicDir.php is called

need to make this work for new installs.
This commit is contained in:
Naomi Aro 2011-07-27 10:41:33 +02:00
parent b46abe0234
commit 8b9cfd7cfa
1 changed files with 23 additions and 19 deletions

View File

@ -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;