X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=htdocs%2Fclear_all_cache.php;h=ad70051b0d80fe7978050ce8140be8fb2c4368ee;hb=fe380d44c07b9898506be06fcf9bb1368e8407b7;hp=6a01b7fcacf3fe7db9f723018cb4c0a9d881a3e0;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/htdocs/clear_all_cache.php b/htdocs/clear_all_cache.php index 6a01b7f..ad70051 100644 --- a/htdocs/clear_all_cache.php +++ b/htdocs/clear_all_cache.php @@ -23,6 +23,6 @@ require_once("xorg.inc.php"); new_skinned_page('index.tpl', AUTH_COOKIE); $page->clear_compiled_tpl(); -header("Location: " . (empty($_SERVER['HTTP_REFERER']) ? 'index.php' : $_SERVER['HTTP_REFERER'])); +redirect(empty($_SERVER['HTTP_REFERER']) ? 'index.php' : $_SERVER['HTTP_REFERER']); ?>