fix repos containing supplementary .md files
[mdref/mdref] / mdref / ExceptionHandler.php
index 13e7f18fbea7bd513878d2d475666cb8e7152fc8..608afaadf42d3299de6a131c1be68f6cf43fbbce 100644 (file)
@@ -60,11 +60,11 @@ class ExceptionHandler
         * @return string
         */
        public static function htmlException(\Exception $e, array $title_tag = ["h1"], array $message_tag = ["p"], array $trace_tag = ["pre", "style='font-size:smaller;overflow-x:scroll'"]) {
-               if ($e instanceof \http\Controller\Exception) {
+               if ($e instanceof Exception) {
                        $code = $e->getCode() ?: 500;
-                       foreach ($e->getHeaders() as $key => $val) {
-                               HTTP::setResponseHeader($key, $val);
-                       }
+                       #foreach ($e->getHeaders() as $key => $val) {
+                       #       HTTP::setResponseHeader($key, $val);
+                       #}
                } else {
                        $code = 500;
                }