$lbits = $this->guessUsersLanguage();
+ if ($this->authUser && !empty($_REQUEST['_debug'])) {
+ DB_DataObject::debugLevel(1);
+ }
+
+
$i = DB_DataObject::Factory('I18n');
// this may fail...
$f = @file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml');
if (!strlen($f)) {
- $target = dirname(__FILE__).'eurofxref-daily.xml';
+ $target = dirname(__FILE__).'/eurofxref-daily.xml';
+
- return false;
+ } else {
+ file_put_contents($target,$f);
}
- file_put_contents($target,$f);
}
$dom = simplexml_load_file($target);
$this->rates['EUR'] = 1.0;