Skip to content

Commit 3e99470

Browse files
committed
Fix redirect controller having no view available
1 parent 8e36db2 commit 3e99470

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

controllers/Redirect.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ public function __construct($redirect_to, $redirect_code = 302) {
2020
}
2121

2222
public function run(Router &$router) {
23-
switch ($router->getRequestPathExtension()) {
24-
case "htm": case "html": case "":
25-
$view = new RedirectHtmlView();
26-
break;
27-
default:
28-
throw new UnspecifiedViewException();
29-
}
23+
$view = new RedirectHtmlView();
3024
$model = new RedirectModel($this->redirect_code, $this->redirect_to);
3125
ob_start();
3226
$view->render($model);

0 commit comments

Comments
 (0)