summaryrefslogtreecommitdiffstats
path: root/lib/migration/content.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/migration/content.php')
-rw-r--r--lib/migration/content.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/migration/content.php b/lib/migration/content.php
index e81c8f217ff..d640bea4b9f 100644
--- a/lib/migration/content.php
+++ b/lib/migration/content.php
@@ -185,13 +185,13 @@ class OC_Migration_Content{
* @return bool
*/
public function addDir( $dir, $recursive=true, $internaldir='' ) {
- $dirname = basename($dir);
- $this->zip->addEmptyDir($internaldir . $dirname);
- $internaldir.=$dirname.='/';
+ $dirname = basename($dir);
+ $this->zip->addEmptyDir($internaldir . $dirname);
+ $internaldir.=$dirname.='/';
if( !file_exists( $dir ) ) {
return false;
}
- if ($dirhandle = opendir($dir)) {
+ if ($dirhandle = opendir($dir)) {
while (false !== ( $file = readdir($dirhandle))) {
if (( $file != '.' ) && ( $file != '..' )) {
@@ -204,11 +204,11 @@ class OC_Migration_Content{
}
}
closedir($dirhandle);
- } else {
+ } else {
OC_Log::write('admin_export', "Was not able to open directory: " . $dir, OC_Log::ERROR);
return false;
- }
- return true;
+ }
+ return true;
}
/**