summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-30 18:23:48 +0100
committerVincent Petry <pvince81@owncloud.com>2013-10-30 18:23:48 +0100
commite3b13b13c96bcdcf63f51a5d1234fd64f7cce702 (patch)
tree75aac46f9d8ca1632df8003c1c8d2ce629ac6dec /settings
parentca4a1ee5f7e223b521e41784b0d9b7ed2af162af (diff)
downloadnextcloud-server-e3b13b13c96bcdcf63f51a5d1234fd64f7cce702.tar.gz
nextcloud-server-e3b13b13c96bcdcf63f51a5d1234fd64f7cce702.zip
Changed log level labels in log level dropdown
Diffstat (limited to 'settings')
-rw-r--r--settings/templates/admin.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index a5724bf3b17..2d9c3ff4f58 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -4,6 +4,13 @@
* See the COPYING-README file.
*/
$levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal');
+$levelLabels = array(
+ $l->t( 'Everything (fatal errors, warnings, info, debug)' ),
+ $l->t( 'Info, warnings, errors and fatal' ),
+ $l->t( 'Warnings, errors and fatal' ),
+ $l->t( 'Errors and fatal' ),
+ $l->t( 'Fatal only' ),
+);
?>
<?php
@@ -210,12 +217,13 @@ if (!$_['internetconnectionworking']) {
<fieldset class="personalblock">
<h2><?php p($l->t('Log'));?></h2>
<?php p($l->t('Log level'));?> <select name='loglevel' id='loglevel'>
- <option value='<?php p($_['loglevel'])?>'><?php p($levels[$_['loglevel']])?></option>
- <?php for ($i = 0; $i < 5; $i++):
- if ($i !== $_['loglevel']):?>
- <option value='<?php p($i)?>'><?php p($levels[$i])?></option>
- <?php endif;
-endfor;?>
+<?php for ($i = 0; $i < 5; $i++):
+ $selected = '';
+ if ($i == $_['loglevel']):
+ $selected = 'selected="selected"';
+ endif; ?>
+ <option value='<?php p($i)?>' <?php p($selected) ?>><?php p($levelLabels[$i])?></option>
+<?php endfor;?>
</select>
<table id="log" class="grid">
<?php foreach ($_['entries'] as $entry): ?>