diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-24 10:16:32 -0700 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-24 10:16:32 -0700 |
commit | 515e1b467e58337067ee3a4a8945f449d3c2ef3a (patch) | |
tree | 06ed218ada64bb696e9c6ce22baa79b827df8530 /apps/files_versions | |
parent | 7454186806d8ebc440f7604d1ff517433bdd9faa (diff) | |
parent | 561cbb2de69a31934c22fc28332b5a14b6fcfc68 (diff) | |
download | nextcloud-server-515e1b467e58337067ee3a4a8945f449d3c2ef3a.tar.gz nextcloud-server-515e1b467e58337067ee3a4a8945f449d3c2ef3a.zip |
Merge pull request #81 from fmms/master
Codestyle add some needed spaces.
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/hooks.php | 2 | ||||
-rw-r--r-- | apps/files_versions/lib/versions.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/lib/hooks.php b/apps/files_versions/lib/hooks.php index 500ce0ef064..822103ebc32 100644 --- a/apps/files_versions/lib/hooks.php +++ b/apps/files_versions/lib/hooks.php @@ -64,7 +64,7 @@ class Hooks { $abs_newpath = \OCP\Config::getSystemValue('datadirectory').$versions_fileview->getAbsolutePath('').$params['newpath'].'.v'; if(Storage::isversioned($rel_oldpath)) { $info=pathinfo($abs_newpath); - if(!file_exists($info['dirname'])) mkdir($info['dirname'],0750,true); + if(!file_exists($info['dirname'])) mkdir($info['dirname'],0750, true); $versions = Storage::getVersions($rel_oldpath); foreach ($versions as $v) { rename($abs_oldpath.$v['version'], $abs_newpath.$v['version']); diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 1b3de84f31a..56878b470d1 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -99,7 +99,7 @@ class Storage { $versionsFolderName=\OCP\Config::getSystemValue('datadirectory'). $versions_fileview->getAbsolutePath(''); $matches=glob($versionsFolderName.'/'.$filename.'.v*'); sort($matches); - $parts=explode('.v',end($matches)); + $parts=explode('.v', end($matches)); if((end($parts)+Storage::DEFAULTMININTERVAL)>time()) { return false; } @@ -109,7 +109,7 @@ class Storage { // create all parent folders $info=pathinfo($filename); if(!file_exists($versionsFolderName.'/'.$info['dirname'])) { - mkdir($versionsFolderName.'/'.$info['dirname'],0750,true); + mkdir($versionsFolderName.'/'.$info['dirname'],0750, true); } // store a new version of a file |