From d11d9d35da91b389f805248da0c19abc96286069 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Fri, 8 Oct 2004 12:45:49 +0000 Subject: [PATCH] gadget --- htdocs/clear_all_cache.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/htdocs/clear_all_cache.php b/htdocs/clear_all_cache.php index 813f7f6..ff8c848 100644 --- a/htdocs/clear_all_cache.php +++ b/htdocs/clear_all_cache.php @@ -18,11 +18,16 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: clear_all_cache.php,v 1.2 2004-08-31 10:03:28 x2000habouzit Exp $ + $Id: clear_all_cache.php,v 1.3 2004-10-08 12:45:49 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); new_admin_page('index.tpl'); $page->clear_all_cache(); -header("Location: index.php"); +$page->clear_compiled_tpl(); +if(isset($_SERVER['HTTP_REFERER'])) { + header("Location: {$_SERVER['HTTP_REFERER']}"); +} else { + header("Location: index.php"); +} ?> -- 2.1.4