diff options
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r-- | apps/files_versions/appinfo/api.php | 2 | ||||
-rw-r--r-- | apps/files_versions/appinfo/update.php | 15 |
2 files changed, 7 insertions, 10 deletions
diff --git a/apps/files_versions/appinfo/api.php b/apps/files_versions/appinfo/api.php index a7386bc2c9f..3c45ff52457 100644 --- a/apps/files_versions/appinfo/api.php +++ b/apps/files_versions/appinfo/api.php @@ -32,5 +32,3 @@ return array( ) ) ); - -?>
\ No newline at end of file diff --git a/apps/files_versions/appinfo/update.php b/apps/files_versions/appinfo/update.php index 9569ca10485..52a4850758a 100644 --- a/apps/files_versions/appinfo/update.php +++ b/apps/files_versions/appinfo/update.php @@ -5,12 +5,11 @@ $installedVersion=OCP\Config::getAppValue('files_versions', 'installed_version') if (version_compare($installedVersion, '1.0.2', '<')) { $users = \OCP\User::getUsers(); $datadir = \OCP\Config::getSystemValue('datadirectory').'/'; - foreach ($users as $user) { - $oldPath = $datadir.$user.'/versions';
- $newPath = $datadir.$user.'/files_versions'; - if(is_dir($oldPath)) { - rename($oldPath, $newPath); - } - } - + foreach ($users as $user) { + $oldPath = $datadir.$user.'/versions'; + $newPath = $datadir.$user.'/files_versions'; + if(is_dir($oldPath)) { + rename($oldPath, $newPath); + } + } } |