Browse Source

added missing parameter documentation

tags/v6.0.0alpha2
Bjoern Schiessle 10 years ago
parent
commit
db8fdd5032
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      apps/files_versions/lib/versions.php

+ 2
- 1
apps/files_versions/lib/versions.php View File

@@ -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));

Loading…
Cancel
Save