Fix review issues

This commit is contained in:
Bart Visscher 2013-02-22 00:21:06 +01:00
parent 19c5213b53
commit 59582e0f3f
2 changed files with 18 additions and 17 deletions

View File

@ -20,19 +20,20 @@ class Storage {
const DEFAULTENABLED=true; const DEFAULTENABLED=true;
const DEFAULTMAXSIZE=50; // unit: percentage; 50% of available disk space/quota const DEFAULTMAXSIZE=50; // unit: percentage; 50% of available disk space/quota
private static $max_versions_per_interval = array( //first 10sec, one version every 2sec private static $max_versions_per_interval = array(
1 => array('intervalEndsAfter' => 10, 'step' => 2), //first 10sec, one version every 2sec
//next minute, one version every 10sec 1 => array('intervalEndsAfter' => 10, 'step' => 2),
2 => array('intervalEndsAfter' => 60, 'step' => 10), //next minute, one version every 10sec
//next hour, one version every minute 2 => array('intervalEndsAfter' => 60, 'step' => 10),
3 => array('intervalEndsAfter' => 3600, 'step' => 60), //next hour, one version every minute
//next 24h, one version every hour 3 => array('intervalEndsAfter' => 3600, 'step' => 60),
4 => array('intervalEndsAfter' => 86400, 'step' => 3600), //next 24h, one version every hour
//next 30days, one version per day 4 => array('intervalEndsAfter' => 86400, 'step' => 3600),
5 => array('intervalEndsAfter' => 2592000, 'step' => 86400), //next 30days, one version per day
//until the end one version per week 5 => array('intervalEndsAfter' => 2592000, 'step' => 86400),
6 => array('intervalEndsAfter' => -1, 'step' => 604800), //until the end one version per week
); 6 => array('intervalEndsAfter' => -1, 'step' => 604800),
);
private static function getUidAndFilename($filename) { private static function getUidAndFilename($filename) {
$uid = \OC\Files\Filesystem::getOwner($filename); $uid = \OC\Files\Filesystem::getOwner($filename);

View File

@ -1,8 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title><?php echo !empty($_['application'])?$_['application'].' | ':'' <title><?php echo !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud
?>ownCloud <?php echo !empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'' ?></title> <?php echo !empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'' ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-itunes-app" content="app-id=543672169"> <meta name="apple-itunes-app" content="app-id=543672169">
<link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /> <link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" />
@ -49,8 +49,8 @@
<?php endforeach; ?> <?php endforeach; ?>
<li> <li>
<a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"> <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true">
<img class="svg" alt="" src="<?php echo image_path('', 'actions/logout.svg'); ?>" <img class="svg" alt="" src="<?php echo image_path('', 'actions/logout.svg'); ?>" />
/> <?php echo $l->t('Log out');?> <?php echo $l->t('Log out');?>
</a> </a>
</li> </li>
</div> </div>