diff options
Diffstat (limited to 'apps/media/ajax/api.php')
-rw-r--r-- | apps/media/ajax/api.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index 60458167a96..8fcabbf840e 100644 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -84,13 +84,6 @@ if($arguments['action']){ OC_DB::beginTransaction(); set_time_limit(0); //recursive scan can take a while $path=$arguments['path']; - if(OC_Filesystem::is_dir($path)){ - $paths=explode(PATH_SEPARATOR,OC_Preferences::getValue(OC_User::getUser(),'media','paths','')); - if(array_search($path,$paths)===false){ - $paths[]=$path; - OC_Preferences::setValue(OC_User::getUser(),'media','paths',implode(PATH_SEPARATOR,$paths)); - } - } echo OC_MEDIA_SCANNER::scanFolder($path); OC_DB::commit(); flush(); |