File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 127127
128128 $ logData = explode ("\n" , htmlspecialchars ($ data ));
129129 $ logDataHtml = '' ;
130+
130131 /* set css class for each line of log, depending on key words in each line */
131- foreach ($ logData as $ val ) {
132+ foreach ($ logData as $ line => $ val ) {
132133 if (strpos ($ val , 'ERROR ' ) !== FALSE ) {
133134 $ logDataHtml .= "<div class='logerror'> $ val</div> " ;
134135 } elseif (strpos ($ val , 'WARN ' ) !== FALSE ) {
140141 }
141142 }
142143
143- $ app ->tpl ->setVar ("log_data " , $ logData );
144+ $ app ->tpl ->setVar ("log_data " , $ logDataHtml );
144145} else {
145146 $ app ->tpl ->setVar ("log_data " , $ app ->lng ("no_logdata_txt " ));
146147}
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ <h1><tmpl_var name="list_head_txt"></h1>
1616
1717 < div class ="pnl_formarea ">
1818 < p class ="fieldset-legend "> < tmpl _var name ="monTransDate "> < tmpl _var name ="time "> </ p >
19- < div class ="codeview "> < tmpl _var name ="log_data "> </ div >
19+ < div class ="codeview "> < pre > < tmpl _var name ="log_data "> </ pre > </ div >
2020
2121 </ div >
You can’t perform that action at this time.
0 commit comments