Replace |json_encode by |json in pageFooter.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 26 May 2023 14:45:36 +0000 (16:45 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 26 May 2023 14:45:57 +0000 (16:45 +0200)
com.woltlab.wcf/templates/pageFooter.tpl

index 20075bfada7bc69e10057d22668bc26ca15def96..00301f3642b57731ef6414856524100ac297b430 100644 (file)
@@ -11,8 +11,8 @@
                {if ENABLE_DEBUG_MODE}
                        <script>
                                console.debug('FORM_VALIDATION_FAILED');
-                               console.debug('errorField:', '{if $errorField|empty}(empty){else}{$errorField|json_encode}{/if}');
-                               console.debug('errorType:', '{if $errorType|empty}(empty){else}{$errorType|json_encode}{/if}');
+                               console.debug('errorField:', '{if $errorField|empty}(empty){else}{$errorField|json}{/if}');
+                               console.debug('errorType:', '{if $errorType|empty}(empty){else}{$errorType|json}{/if}');
                        </script>
                {/if}
        {/if}