From 63def06ca88cacdfc0688d450a22ff17f499ef88 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Sep 2010 15:54:24 +0400 Subject: check_for_update: fix typo which caused incorrect output of print_runtime_error() which caused RPC errors when DEFAULT_UPDATE_METHOD was set to SimplePie --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 2f895cd30..e7d95c152 100644 --- a/functions.php +++ b/functions.php @@ -3966,7 +3966,7 @@ } error_reporting(0); - if (DEFAULT_UPDATE_INTERVAL == "1") { + if (DEFAULT_UPDATE_METHOD == "1") { $rss = new SimplePie(); $rss->set_useragent(SIMPLEPIE_USERAGENT . MAGPIE_USER_AGENT_EXT); // $rss->set_timeout(MAGPIE_FETCH_TIME_OUT); -- cgit v1.2.3-54-g00ecf From 91c5f22946ab93d1eaf1bccc2f0c5c3dece6bc43 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Sep 2010 16:00:05 +0400 Subject: skip new version checking right after login to speed up startup --- functions.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index e7d95c152..115bdfebd 100644 --- a/functions.php +++ b/functions.php @@ -1850,6 +1850,8 @@ $_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"]; $_SESSION["pwd_hash"] = db_fetch_result($result, 0, "pwd_hash"); + + $_SESSION["last_version_check"] = time(); initialize_user_prefs($link, $_SESSION["uid"]); -- cgit v1.2.3-54-g00ecf