1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:05:56 +00:00

logger: use constants instead of hardcoded string literals

This commit is contained in:
Andrew Dolgov
2021-03-07 09:05:23 +03:00
parent 17650775d2
commit c036c27ec7
3 changed files with 9 additions and 5 deletions

View File

@@ -165,7 +165,7 @@ class Pref_System extends Handler_Administrative {
$page = (int) ($_REQUEST["page"] ?? 0);
?>
<div dojoType='dijit.layout.AccordionContainer' region='center'>
<?php if (Config::get(Config::LOG_DESTINATION) == "sql") { ?>
<?php if (Config::get(Config::LOG_DESTINATION) == Logger::LOG_DEST_SQL) { ?>
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">report</i> <?= __('Event log') ?>'>
<?php
$this->_log_viewer($page, $severity);