Skip to content
Snippets Groups Projects
Commit 77e43058 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #5634 from owncloud/admin-loglevellabels

Changed log level labels in log level dropdown
parents c1730d24 aba7335d
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,13 @@ ...@@ -4,6 +4,13 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
$levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal'); $levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal');
$levelLabels = array(
$l->t( 'Everything (fatal issues, errors, warnings, info, debug)' ),
$l->t( 'Info, warnings, errors and fatal issues' ),
$l->t( 'Warnings, errors and fatal issues' ),
$l->t( 'Errors and fatal issues' ),
$l->t( 'Fatal issues only' ),
);
?> ?>
<?php <?php
...@@ -210,12 +217,13 @@ if (!$_['internetconnectionworking']) { ...@@ -210,12 +217,13 @@ if (!$_['internetconnectionworking']) {
<fieldset class="personalblock"> <fieldset class="personalblock">
<h2><?php p($l->t('Log'));?></h2> <h2><?php p($l->t('Log'));?></h2>
<?php p($l->t('Log level'));?> <select name='loglevel' id='loglevel'> <?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++): <?php for ($i = 0; $i < 5; $i++):
if ($i !== $_['loglevel']):?> $selected = '';
<option value='<?php p($i)?>'><?php p($levels[$i])?></option> if ($i == $_['loglevel']):
<?php endif; $selected = 'selected="selected"';
endfor;?> endif; ?>
<option value='<?php p($i)?>' <?php p($selected) ?>><?php p($levelLabels[$i])?></option>
<?php endfor;?>
</select> </select>
<table id="log" class="grid"> <table id="log" class="grid">
<?php foreach ($_['entries'] as $entry): ?> <?php foreach ($_['entries'] as $entry): ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment