File tree Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -623,14 +623,34 @@ function appExpandTabs(act, key){
623
623
$ output .= $ htmlCompression ? nl2br ($ arrUserConstants ) : $ arrUserConstants ;
624
624
$ output .= '</pre> ' ;
625
625
$ output .= '<br> ' ;
626
-
627
- $ output .= '<strong>VIEW VARIABLES</strong>: ' ;
628
- $ output .= '<pre style="white-space:pre-wrap;"> ' ;
629
- $ arrViewVars = A::app ()->view ->getAllVars ();
630
- $ arrViewVars = print_r (@array_map ('htmlspecialchars ' , $ arrViewVars ), true );
631
- $ output .= $ htmlCompression ? nl2br ($ arrViewVars ) : $ arrViewVars ;
632
- $ output .= '</pre> ' ;
633
- $ output .= '<br> ' ;
626
+
627
+ $ output .= '<strong>VIEW VARIABLES</strong>: ' ;
628
+ $ output .= '<pre style="white-space:pre-wrap;"> ' ;
629
+ $ arrViewVars = A::app ()->view ->getAllVars ();
630
+
631
+ $ arrViewVarsTemp = [];
632
+ foreach ($ arrViewVars as $ arrViewVar ) {
633
+ if (is_string ($ arrViewVar )) {
634
+ $ arrViewVarsTemp [] = htmlspecialchars ($ arrViewVar );
635
+ } else {
636
+ $ arrViewVarsTemp [] = $ arrViewVar ;
637
+ }
638
+ }
639
+ $ arrViewVars = $ arrViewVarsTemp ;
640
+
641
+ $ arrViewVarsTemp = [];
642
+ foreach ($ arrViewVars as $ arrViewVar ) {
643
+ if ($ htmlCompression && is_string ($ arrViewVar )) {
644
+ $ arrViewVarsTemp [] = nl2br ($ arrViewVar );
645
+ } else {
646
+ $ arrViewVarsTemp [] = $ arrViewVar ;
647
+ }
648
+ }
649
+ $ arrViewVars = $ arrViewVarsTemp ;
650
+
651
+ $ output .= print_r ($ arrViewVars , true );
652
+ $ output .= '</pre> ' ;
653
+ $ output .= '<br> ' ;
634
654
635
655
$ output .= '</div>
636
656
You can’t perform that action at this time.
0 commit comments