Fix #502: aka <=> alias
[platal.git] / modules / core.php
index 820fb60..787e236 100644 (file)
@@ -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']);
     }
 }