X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcore.php;h=787e23654df9f49fabadb31a203fa2262bac268b;hb=0fb07071cd99f867b48a527c90996601a079fff8;hp=820fb60a910baf1a882234f2a78ab9b460177203;hpb=c9178c75cab8a35b0aa4b4000708569f9f3359c4;p=platal.git diff --git a/modules/core.php b/modules/core.php index 820fb60..787e236 100644 --- a/modules/core.php +++ b/modules/core.php @@ -42,14 +42,12 @@ class CoreModule extends PLModule { header('HTTP/1.0 403 Forbidden'); $page->changeTpl('403.tpl'); - return PL_OK; } function handler_404(&$page) { header('HTTP/1.0 404 Not Found'); $page->changeTpl('404.tpl'); - return PL_OK; } function handler_purge_cache(&$page) @@ -59,7 +57,7 @@ class CoreModule extends PLModule $page->clear_compiled_tpl(); wiki_clear_all_cache(); - redirect(empty($_SERVER['HTTP_REFERER']) ? './' : $_SERVER['HTTP_REFERER']); + http_redirect(empty($_SERVER['HTTP_REFERER']) ? './' : $_SERVER['HTTP_REFERER']); } }