viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
diff --git a/src/controllers/ResourceController.php b/src/controllers/ResourceController.php index 8e49f2039..0eeba6d6b 100644 --- a/src/controllers/ResourceController.php +++ b/src/controllers/ResourceController.php @@ -30,6 +30,7 @@ */ namespace seekquarry\yioop\controllers; +use seekquarry\yioop as B; use seekquarry\yioop\configs as C; use seekquarry\yioop\library as L; use seekquarry\yioop\library\CrawlConstants; @@ -234,7 +235,8 @@ class ResourceController extends Controller implements CrawlConstants */ public function requestError() { - $error_location = "Location:" . C\SHORT_BASE_URL . "/error"; + $error = B\directUrl("error", false, true); + $error_location = "Location: $error"; if (!C\REDIRECTS_ON) { $error_location .= ".php"; } diff --git a/src/index.php b/src/index.php index d18f111b1..eb0ee0640 100644 --- a/src/index.php +++ b/src/index.php @@ -310,7 +310,8 @@ function configureRewrites($web_site) } } if (!$handled) { - $error_location = "Location:" . C\SHORT_BASE_URL . "/error"; + $error = directUrl("error", false, true); + $error_location = "Location:" . $error; if (!C\REDIRECTS_ON) { $error_location .= ".php"; }