summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-30 07:57:29 +0100
committerAndrew Dolgov <[email protected]>2006-03-30 07:57:29 +0100
commit1b758780aa92e07e10dfa02fe1f3980e7f85ee68 (patch)
treec193cc9d4a5dcfc0635735111a222524a0e5060d
parent7f423315279a5f42c6982b27fb5c3e0f47cafe0a (diff)
only append time() to scripts when using dev. version
-rw-r--r--backend.php2
-rw-r--r--functions.php8
-rw-r--r--prefs.php2
-rw-r--r--tt-rss.php2
4 files changed, 11 insertions, 3 deletions
diff --git a/backend.php b/backend.php
index bc3b388df..5554adae2 100644
--- a/backend.php
+++ b/backend.php
@@ -83,7 +83,7 @@
10080 => "Weekly");
$script_started = getmicrotime();
- $script_dt_add = time();
+ $script_dt_add = get_script_dt_add();
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
diff --git a/functions.php b/functions.php
index a9081e59e..be95caa04 100644
--- a/functions.php
+++ b/functions.php
@@ -1482,4 +1482,12 @@
}
}
+ function get_script_dt_add() {
+ if (strpos(VERSION, "99") === false) {
+ return VERSION;
+ } else {
+ return time();
+ }
+ }
+
?>
diff --git a/prefs.php b/prefs.php
index 4cd1cabe9..8532b94eb 100644
--- a/prefs.php
+++ b/prefs.php
@@ -14,7 +14,7 @@
login_sequence($link);
- $dt_add = time();
+ $dt_add = get_script_dt_add();
?>
<html>
diff --git a/tt-rss.php b/tt-rss.php
index f395ea7c5..2906241ab 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -14,7 +14,7 @@
login_sequence($link);
- $dt_add = time();
+ $dt_add = get_script_dt_add();
?>
<html>