[FEATURE] Error level as the first column in BE Log module
authorDominique Feyer <dominique.feyer@reelpeek.net>
Mon, 6 Feb 2012 07:55:56 +0000 (08:55 +0100)
committerJigal van Hemert <jigal@xs4all.nl>
Thu, 9 Feb 2012 18:43:09 +0000 (19:43 +0100)
Move error level (warning, error, ...) to first column
in BE to help catch the importance of the row.

Change-Id: I05f05b830cc92bddfb13126d0fe4826995783bc8
Resolves: #33816
Releases: 4.7
Reviewed-on: http://review.typo3.org/3170
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
t3lib/class.t3lib_bedisplaylog.php
typo3/sysext/belog/mod/index.php

index 41c87c7..a004e08 100644 (file)
@@ -69,10 +69,10 @@ class t3lib_BEDisplayLog {
         */
        function initArray() {
                $codeArr = array();
+               $codeArr[0][] = 'Error';
                $codeArr[0][] = 'Time'; // Time
                $codeArr[0][] = 'User';
                $codeArr[0][] = 'Type';
-               $codeArr[0][] = 'Error';
                $codeArr[0][] = 'Action';
                $codeArr[0][] = 'Details';
                return $codeArr;
index cfbdd75..6bf3680 100755 (executable)
@@ -468,10 +468,10 @@ class SC_mod_tools_log_index {
                                }
 
                                $i++;
+                               $codeArr[$i][] = $row['error'] ? $this->displayLogInstance->getErrorIcon($row['error']) : '';
                                $codeArr[$i][] = $this->displayLogInstance->getTimeLabel($row['tstamp']);
                                $codeArr[$i][] = $this->displayLogInstance->getUserLabel($row['userid'], $row['workspace']);
                                $codeArr[$i][] = $this->displayLogInstance->getTypeLabel($row['type']);
-                               $codeArr[$i][] = $row['error'] ? $this->displayLogInstance->getErrorIcon($row['error']) : '';
                                $codeArr[$i][] = $this->displayLogInstance->getActionLabel($row['type'] . '_' . $row['action']);
                                $codeArr[$i][] = $this->displayLogInstance->formatDetailsForList($row);
                        }