diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-26 16:28:23 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-12 11:24:52 +0200 |
commit | e8760d7284577bb785093e0cbea74b8ca13d643a (patch) | |
tree | 2a00a2793df691a4e25036dbe5244b50e1072d42 /apps/files_versions | |
parent | d6c1e5490d8f457da5fac12fce3db33802669abe (diff) | |
download | nextcloud-server-e8760d7284577bb785093e0cbea74b8ca13d643a.tar.gz nextcloud-server-e8760d7284577bb785093e0cbea74b8ca13d643a.zip |
also expire versions on rename, to update the history more regularly
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/versions.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index d9016e40935..b9cc40a0664 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -178,6 +178,8 @@ class Storage { return self::store($new_path); } + self::expire($newpath); + $abs_newpath = $versions_view->getLocalFile($newpath); if ( $files_view->is_dir($oldpath) && $versions_view->is_dir($oldpath) ) { |