diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-22 00:21:06 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-22 00:21:06 +0100 |
commit | 59582e0f3fb395378b88aec2a6d0689bb2ac039e (patch) | |
tree | 13e385a69cf32692cfaefc395a778983281cf3fd | |
parent | 19c5213b53fbddc2a2b61e0ad35cda6ce5002bb5 (diff) | |
download | nextcloud-server-59582e0f3fb395378b88aec2a6d0689bb2ac039e.tar.gz nextcloud-server-59582e0f3fb395378b88aec2a6d0689bb2ac039e.zip |
Fix review issues
-rw-r--r-- | apps/files_versions/lib/versions.php | 27 | ||||
-rw-r--r-- | core/templates/layout.user.php | 8 |
2 files changed, 18 insertions, 17 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 39c00001b4d..503d996c62a 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -20,19 +20,20 @@ class Storage { const DEFAULTENABLED=true; const DEFAULTMAXSIZE=50; // unit: percentage; 50% of available disk space/quota - private static $max_versions_per_interval = array( //first 10sec, one version every 2sec - 1 => array('intervalEndsAfter' => 10, 'step' => 2), - //next minute, one version every 10sec - 2 => array('intervalEndsAfter' => 60, 'step' => 10), - //next hour, one version every minute - 3 => array('intervalEndsAfter' => 3600, 'step' => 60), - //next 24h, one version every hour - 4 => array('intervalEndsAfter' => 86400, 'step' => 3600), - //next 30days, one version per day - 5 => array('intervalEndsAfter' => 2592000, 'step' => 86400), - //until the end one version per week - 6 => array('intervalEndsAfter' => -1, 'step' => 604800), - ); + private static $max_versions_per_interval = array( + //first 10sec, one version every 2sec + 1 => array('intervalEndsAfter' => 10, 'step' => 2), + //next minute, one version every 10sec + 2 => array('intervalEndsAfter' => 60, 'step' => 10), + //next hour, one version every minute + 3 => array('intervalEndsAfter' => 3600, 'step' => 60), + //next 24h, one version every hour + 4 => array('intervalEndsAfter' => 86400, 'step' => 3600), + //next 30days, one version per day + 5 => array('intervalEndsAfter' => 2592000, 'step' => 86400), + //until the end one version per week + 6 => array('intervalEndsAfter' => -1, 'step' => 604800), + ); private static function getUidAndFilename($filename) { $uid = \OC\Files\Filesystem::getOwner($filename); diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 17664c4ef03..d0869cb8404 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -1,8 +1,8 @@ <!DOCTYPE html> <html> <head> - <title><?php echo !empty($_['application'])?$_['application'].' | ':'' - ?>ownCloud <?php echo !empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'' ?></title> + <title><?php echo !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud + <?php echo !empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'' ?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="apple-itunes-app" content="app-id=543672169"> <link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /> @@ -49,8 +49,8 @@ <?php endforeach; ?> <li> <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"> - <img class="svg" alt="" src="<?php echo image_path('', 'actions/logout.svg'); ?>" - /> <?php echo $l->t('Log out');?> + <img class="svg" alt="" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /> + <?php echo $l->t('Log out');?> </a> </li> </div> |