CC-3636: Media Folder: dir path in cc_music_dir should be in consistent format

- fixed
This commit is contained in:
James 2012-04-12 17:23:26 -04:00
parent 86718cc58e
commit c706bc32fd
1 changed files with 3 additions and 0 deletions

View File

@ -342,6 +342,9 @@ class Application_Model_MusicDir {
public static function setStorDir($p_dir)
{
// we want to be consistent when storing dir path.
// path should always ends with trailing '/'
$p_dir = realpath($p_dir)."/";
if(!is_dir($p_dir)){
return array("code"=>2, "error"=>"'$p_dir' is not a valid directory.");
}else if(Application_Model_Preference::GetImportTimestamp()+10 > time()){