From d739e439f8f06e7907ea5e5cc8ba959f49346a79 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 29 Jan 2013 13:30:29 +0800 Subject: [PATCH] I18n.php --- I18n.php | 1 + 1 file changed, 1 insertion(+) diff --git a/I18n.php b/I18n.php index 2ac66169..db8597c9 100644 --- a/I18n.php +++ b/I18n.php @@ -287,6 +287,7 @@ class Pman_Core_I18n extends Pman } $target = ini_get('session.save_path').'/eurofxref-daily.xml'; if (!file_exists($target) || filemtime($target) < (time() - 60*60*24)) { + // this may fail... $f = @file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'); if (!strlen($f)) { return false; -- 2.39.2