aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-10 20:09:38 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-10 20:09:38 +0200
commitf4e86045dee9578e80cd323d7ea56823388dd4ec (patch)
treeaeff623574d0ccc00939c8492effb05a157f2e4e /apps/files_versions
parent87cccb2e32a7e09f9df95b41909964bad5b4acb7 (diff)
downloadnextcloud-server-f4e86045dee9578e80cd323d7ea56823388dd4ec.tar.gz
nextcloud-server-f4e86045dee9578e80cd323d7ea56823388dd4ec.zip
make files versions root a class constant
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/versions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 48c25831ebb..77242216655 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -19,6 +19,7 @@ class Storage {
const DEFAULTENABLED=true;
const DEFAULTMAXSIZE=50; // unit: percentage; 50% of available disk space/quota
+ const VERSIONS_ROOT = 'files_versions/';
private static $max_versions_per_interval = array(
//first 10sec, one version every 2sec
@@ -241,7 +242,7 @@ class Storage {
public static function getVersions($uid, $filename) {
$versions = array();
// fetch for old versions
- $view = new \OC\Files\View('/' . $uid . '/files_versions/');
+ $view = new \OC\Files\View('/' . $uid . '/' . self::VERSIONS_ROOT);
$pathinfo = pathinfo($filename);
@@ -345,8 +346,7 @@ class Storage {
*/
private static function getAllVersions($uid) {
$view = new \OC\Files\View('/' . $uid . '/');
- $versionsPath = 'files_versions/';
- $dirs = array($versionsPath);
+ $dirs = array(self::VERSIONS_ROOT);
while (!empty($dirs)) {
$dir = array_pop($dirs);