]> git.wh0rd.org Git - tt-rss.git/commitdiff
only append time() to scripts when using dev. version
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 30 Mar 2006 06:57:29 +0000 (07:57 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 30 Mar 2006 06:57:29 +0000 (07:57 +0100)
backend.php
functions.php
prefs.php
tt-rss.php

index bc3b388dfe1a56a74f582f32cac3bba6ec8d4648..5554adae2b985a3675f2405ab63ead5f11f81a46 100644 (file)
@@ -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); 
 
index a9081e59e86b93c86c65a1728e126af8c394a589..be95caa04b9f046f6dcdedc069644d89ed08e7ae 100644 (file)
                }
        }
 
+       function get_script_dt_add() {
+               if (strpos(VERSION, "99") === false) {
+                       return VERSION;
+               } else {
+                       return time();
+               }
+       }
+
 ?>
index 4cd1cabe9d599106e4820b2e96f5cf50896be186..8532b94eb44a0161a285ccfcbcaf8a364abd432b 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -14,7 +14,7 @@
 
        login_sequence($link);
 
-       $dt_add = time();
+       $dt_add = get_script_dt_add();
 
 ?>
 <html>
index f395ea7c5d894679f3f7592a46311e9cec073be7..2906241ab39e63b006a8bb1394bb858cac596c56 100644 (file)
@@ -14,7 +14,7 @@
 
        login_sequence($link);
 
-       $dt_add = time();
+       $dt_add = get_script_dt_add();
 
 ?>
 <html>