diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-17 13:46:33 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-17 13:46:33 +0200 |
commit | db8fdd5032ca3c4b4fa54cc617909abf3525622c (patch) | |
tree | 3a01fc7a009e827b1eec4543791fbd6d41db9f5c /apps/files_versions | |
parent | f71794f0d5a09686e2bcf1a5b6ec0b19076a43e5 (diff) | |
download | nextcloud-server-db8fdd5032ca3c4b4fa54cc617909abf3525622c.tar.gz nextcloud-server-db8fdd5032ca3c4b4fa54cc617909abf3525622c.zip |
added missing parameter documentation
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/versions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 39220f43d5f..d91654fe24a 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -184,7 +184,7 @@ class Storage { } else if ( ($versions = Storage::getVersions($uid, $oldpath)) ) { // create missing dirs if necessary self::createMissingDirectories($newpath, new \OC\Files\View('/'. $uidn)); - + foreach ($versions as $v) { $versions_view->rename($oldpath.'.v'.$v['version'], $newpath.'.v'.$v['version']); } @@ -566,6 +566,7 @@ class Storage { /** * @brief create recursively missing directories * @param string $filename $path to a file + * @param \OC\Files\View $view view on data/user/ */ private static function createMissingDirectories($filename, $view) { $dirname = \OC_Filesystem::normalizePath(pathinfo($filename, PATHINFO_DIRNAME)); |