aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-01-11 20:05:49 +0000
committerplegall <plg@piwigo.org>2005-01-11 20:05:49 +0000
commit037885d2f3d33cd83f4d79415baa5cf7019b5461 (patch)
tree59161eaddd39e569095daff0a5c223966e8ee9a8
parent24903f219821e17dc69002654fa709590ba312a8 (diff)
- decrease refresh time to 0 seconds
git-svn-id: http://piwigo.org/svn/trunk@686 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php2
-rw-r--r--include/page_header.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 7f559a893..485d490b5 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -547,7 +547,7 @@ function redirect( $url )
// $refresh, $url_link and $title are required for creating an automated
// refresh page in header.tpl
- $refresh = 2;
+ $refresh = 0;
$url_link = $url;
$title = 'redirection';
include( PHPWG_ROOT_PATH.'include/page_header.php' );
diff --git a/include/page_header.php b/include/page_header.php
index 95785a1c9..f33c77ae1 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -44,7 +44,7 @@ $template->assign_vars(
));
// refresh
-if ( isset( $refresh ) and $refresh > 0 and isset( $url_link ) )
+if ( isset( $refresh ) and is_int($refresh) and isset( $url_link ) )
{
$template->assign_vars(
array(