mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 03:15:54 +00:00
only append time() to scripts when using dev. version
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
10080 => "Weekly");
|
10080 => "Weekly");
|
||||||
|
|
||||||
$script_started = getmicrotime();
|
$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);
|
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||||
|
|
||||||
|
|||||||
@@ -1482,4 +1482,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_script_dt_add() {
|
||||||
|
if (strpos(VERSION, "99") === false) {
|
||||||
|
return VERSION;
|
||||||
|
} else {
|
||||||
|
return time();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
login_sequence($link);
|
login_sequence($link);
|
||||||
|
|
||||||
$dt_add = time();
|
$dt_add = get_script_dt_add();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
login_sequence($link);
|
login_sequence($link);
|
||||||
|
|
||||||
$dt_add = time();
|
$dt_add = get_script_dt_add();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
Reference in New Issue
Block a user