Server IP : 172.67.158.161 / Your IP : 3.15.138.89 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/thietke365.net/wp-content/plugins/loco-translate/src/admin/ |
Upload File : |
<?php /** * */ class Loco_admin_ErrorController extends Loco_mvc_AdminController { public function renderError( Exception $e ){ $this->set('error', Loco_error_Exception::convert($e) ); return $this->render(); } public function render(){ $e = $this->get('error'); if( $e ){ /* @var Loco_error_Exception $e */ $file = Loco_mvc_FileParams::create( new Loco_fs_File( $e->getRealFile() ) ); $file['line'] = $e->getRealLine(); $this->set('file', $file ); if( loco_debugging() ){ $trace = []; foreach( $e->getRealTrace() as $raw ) { $frame = new Loco_mvc_ViewParams($raw); if( $frame->has('file') ){ $frame['file'] = Loco_mvc_FileParams::create( new Loco_fs_File($frame['file']) )->relpath; } $trace[] = $frame; } $this->set('trace',$trace); } } else { $e = new Loco_error_Exception('Unknown error'); $this->set('error', $e ); } return $this->view( $e->getTemplate() ); } }