|
@@ -111,7 +111,7 @@ |
|
|
block discarded – undo |
|
111
|
111
|
return $response->withHeader('Content-Type', 'application/json;charset=utf-8')->withHeader('X-Powered-By', "reformo/rslim")->withStatus($status); |
|
112
|
112
|
} |
|
113
|
113
|
|
|
114
|
|
- private function returnHtml($function_name, $request, $args, $response, $route, $action, $template){ |
|
|
114
|
+ private function returnHtml($function_name, $request, $args, $response, $route, $action, $template) { |
|
115
|
115
|
if (!file_exists($this->config['base_dir'] . $template)) { |
|
116
|
116
|
throw new \Exception("<strong>Template file not found!</strong> " . $route . '/' . $action . " needs a template file at:" . $template); |
|
117
|
117
|
} |
Please login to merge, or discard this patch.