File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
33use Symphony \ApiFramework \Lib ;
4+ use \Symphony ;
45
56function renderer_json ($ mode ){
67 if (strtolower ($ mode ) == 'administration ' ) {
7- throw new Lib \Exceptions \InvalidModeException ('JSON Renderer launcher is only availalbe on the frontend ' );
8+ throw new Lib \Exceptions \InvalidModeException ('JSON Renderer launcher is only available on the frontend ' );
89 }
910
1011 $ renderer = Frontend::instance ();
1112
13+ // Check if we should enable exception debug information
14+ $ exceptionDebugEnabled = Symphony::isLoggedIn ();
15+
16+ // Use the JSON exception and error handlers instead of the Symphony one.
17+ Lib \ExceptionHandler::initialise ($ exceptionDebugEnabled );
18+ Lib \ErrorHandler::initialise ($ exceptionDebugEnabled );
19+
1220 // #1808
1321 if (isset ($ _SERVER ['HTTP_MOD_REWRITE ' ]))
1422 {
You can’t perform that action at this time.
0 commit comments