summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-29 20:34:44 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-29 20:34:44 +0200
commitdb18218a1bba86e364fd4fec08c2e1a0eb4e7b16 (patch)
treecfa630c22ea74e3d6bd6258b78776a1d8b5c84bd /apps/files_versions
parent9e32e0730644a4340b2f88b0d8750fd1f8e8903a (diff)
downloadnextcloud-server-db18218a1bba86e364fd4fec08c2e1a0eb4e7b16.tar.gz
nextcloud-server-db18218a1bba86e364fd4fec08c2e1a0eb4e7b16.zip
Space before tab fixes
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/appinfo/update.php15
-rw-r--r--apps/files_versions/history.php2
2 files changed, 8 insertions, 9 deletions
diff --git a/apps/files_versions/appinfo/update.php b/apps/files_versions/appinfo/update.php
index e289b927b3c..52a4850758a 100644
--- a/apps/files_versions/appinfo/update.php
+++ b/apps/files_versions/appinfo/update.php
@@ -5,12 +5,11 @@ $installedVersion=OCP\Config::getAppValue('files_versions', 'installed_version')
if (version_compare($installedVersion, '1.0.2', '<')) {
$users = \OCP\User::getUsers();
$datadir = \OCP\Config::getSystemValue('datadirectory').'/';
- foreach ($users as $user) {
- $oldPath = $datadir.$user.'/versions';
- $newPath = $datadir.$user.'/files_versions';
- if(is_dir($oldPath)) {
- rename($oldPath, $newPath);
- }
- }
-
+ foreach ($users as $user) {
+ $oldPath = $datadir.$user.'/versions';
+ $newPath = $datadir.$user.'/files_versions';
+ if(is_dir($oldPath)) {
+ rename($oldPath, $newPath);
+ }
+ }
}
diff --git a/apps/files_versions/history.php b/apps/files_versions/history.php
index ea36d6d9f88..0ebb34f45e4 100644
--- a/apps/files_versions/history.php
+++ b/apps/files_versions/history.php
@@ -35,7 +35,7 @@ if ( isset( $_GET['path'] ) ) {
// roll back to old version if button clicked
if( isset( $_GET['revert'] ) ) {
- if( $versions->rollback( $path, $_GET['revert'] ) ) {
+ if( $versions->rollback( $path, $_GET['revert'] ) ) {
$tmpl->assign( 'outcome_stat', 'success' );