git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8531 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti committed 2011-09-13 09:57:19 +00:00
1 parent 97aa51eb20
commit fc7612f010
1 file changed
+3 -3
+3 -3
View File
@@ -102,9 +102,9 @@ class UpgraderCore{
// except if no check has been done before // except if no check has been done before
if ($force OR ($lastCheck < time() - (3600 * Upgrader::DEFAULT_CHECK_VERSION_DELAY_HOURS)) ) if ($force OR ($lastCheck < time() - (3600 * Upgrader::DEFAULT_CHECK_VERSION_DELAY_HOURS)) )
{ {
libxml_set_streams_context(stream_context_create(array('http' => array('timeout' => 3)))); libxml_set_streams_context(stream_context_create(array('http' => array('timeout' => 3))));
if ($feed = @simplexml_load_file($this->rss_version_link)) if ($feed = @simplexml_load_file($this->rss_version_link))
{ {
$this->version_name = (string)$feed->version->name; $this->version_name = (string)$feed->version->name;
$this->version_num = (string)$feed->version->num; $this->version_num = (string)$feed->version->num;
@@ -127,8 +127,8 @@ class UpgraderCore{
Configuration::updateValue('PS_LAST_VERSION',serialize($configLastVersion)); Configuration::updateValue('PS_LAST_VERSION',serialize($configLastVersion));
Configuration::updateValue('PS_LAST_VERSION_CHECK',time()); Configuration::updateValue('PS_LAST_VERSION_CHECK',time());
}
} }
}
else else
{ {
$lastVersionCheck = @unserialize(Configuration::get('PS_LAST_VERSION')); $lastVersionCheck = @unserialize(Configuration::get('PS_LAST_VERSION'));