mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-07-21 19:23:32 +03:00
Merge remote-tracking branch 'origin/master' into issue-107
Add test for pre-PHP 5.4 for pretty-printing logs Conflicts: includes/misc.inc.php
This commit is contained in:
commit
7c767b7769
3 changed files with 15 additions and 4 deletions
6
logs.php
6
logs.php
|
@ -68,7 +68,11 @@ if ($logging !== TRUE) {
|
|||
$entries=getlogs();
|
||||
}
|
||||
|
||||
print json_encode($entries,JSON_PRETTY_PRINT);
|
||||
if(defined('JSON_PRETTY_PRINT')) {
|
||||
print json_encode($entries,JSON_PRETTY_PRINT);
|
||||
} else {
|
||||
print json_encode($entries);
|
||||
}
|
||||
break;
|
||||
|
||||
case "clear":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue