Browse Source

Standards enforcing

pull/2862/head
Hypolite Petovan 4 years ago
parent
commit
9a59878190
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      include/text.php

+ 3
- 2
include/text.php View File

@ -719,9 +719,10 @@ function logger($msg, $level = 0) {
}
if (count($LOGGER_LEVELS) == 0) {
foreach (get_defined_constants() as $k => $v){
if (substr($k, 0, 7) == "LOGGER_")
foreach (get_defined_constants() as $k => $v) {
if (substr($k, 0, 7) == "LOGGER_") {
$LOGGER_LEVELS[$v] = substr($k, 7, 7);
}
}
}


Loading…
Cancel
Save