diff --git a/day.php b/day.php
index 1766113e0..b43f07d87 100644
--- a/day.php
+++ b/day.php
@@ -68,12 +68,7 @@
}
$eventinfo = ( ! empty ( $eventinfo )? $eventinfo : '' );
$trailerStr = print_trailer ();
-$HeadX = '';
-if ( $AUTO_REFRESH == 'Y' && ! empty ( $AUTO_REFRESH_TIME ) ) {
- $refresh = $AUTO_REFRESH_TIME * 60; // convert to seconds
- $HeadX = "\n";
-}
+$HeadX = generate_refresh_meta ();
$INC = array('js/popups.php/true');
print_header($INC,$HeadX);
diff --git a/includes/functions.php b/includes/functions.php
index 66b58eca1..5fb57d5ce 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -6178,4 +6178,21 @@ function generate_application_name ( $custom=true ) {
return htmlspecialchars ( $APPLICATION_NAME );
}
}
+
+/**
+ * Generate Refresh Meta Tag
+ *
+ * @return HTML for Meta Tag
+ */
+function generate_refresh_meta () {
+ global $AUTO_REFRESH, $AUTO_REFRESH_TIME, $REQUEST_URI;
+
+ $ret = '';
+ if ( $AUTO_REFRESH == 'Y' && ! empty ( $AUTO_REFRESH_TIME ) &&
+ ! empty ( $REQUEST_URI )) {
+ $refresh = $AUTO_REFRESH_TIME * 60; // convert to seconds
+ $ret .= "";
+ }
+ return $ret;
+}
?>
diff --git a/includes/init.php b/includes/init.php
index 7348f20b8..e6cdc8ba1 100644
--- a/includes/init.php
+++ b/includes/init.php
@@ -167,7 +167,7 @@ function print_header ( $includes = '', $HeadX = '', $BodyX = '',
}
// Do we need anything else inside the header tag?
if ( $HeadX )
- $ret .= $HeadX . "\n";
+ $ret .= "\n " . $HeadX;
// Include the styles
// Include CSS needed for the top menu
if ( $MENU_ENABLED == 'Y' ) {
@@ -207,12 +207,12 @@ function print_header ( $includes = '', $HeadX = '', $BodyX = '',
' : '' )
+ . ( $login != '__public__' ? '?user=' . $login : '' ) . '" />' : '' ) . "\n"
// Link to favicon
- . ''
+ . ' '. "\n"
. ( $MENU_ENABLED == 'Y' ? $menuScript : '' )
// Finish the header
- . '
+ . '