X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=classes%2Fplatal.php;fp=classes%2Fplatal.php;h=d15c99f9e5619cc6136d47d7afa77b1ba81d3a5c;hb=f3f26e2b84a4ddd6c1daf3013bfa8adc252b727a;hp=7e4476d81d633a28f0f1801264b63a0e31062aa4;hpb=6e8c4aca72b92b6c1a6460155e5dd7688b892b9e;p=platal.git diff --git a/classes/platal.php b/classes/platal.php index 7e4476d..d15c99f 100644 --- a/classes/platal.php +++ b/classes/platal.php @@ -487,6 +487,11 @@ abstract class Platal */ abstract public function force_login(PlPage $page); + protected function report_error($error) + { + PlErrorReport::report($error); + } + public function run() { $page =& self::page(); @@ -516,7 +521,7 @@ abstract class Platal } } catch (Exception $e) { header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error'); - PlErrorReport::report($e); + $this->report_error($e); if (self::globals()->debug) { $page->kill(pl_entities($e->getMessage()) . '
' . pl_entities("" . $e) . '
');