X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=UpdateCurrencyRate.php;h=0c0fe04d6b6cfb5c4b7596f8e8938230ddf5866d;hp=54bed5c3bbfdf60861130a3e6e68c8a4b8e565d1;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=1a7e9848fad88cd280789e803f30d381f1a719ed diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 54bed5c3..0c0fe04d 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -31,24 +31,20 @@ class Pman_Core_UpdateCurrencyRate extends Pman die("NOT ALLOWED"); } - function get($args, $opts) + function get($args, $opts=array()) { - DB_DataObject::DebugLevel(1); + //DB_DataObject::DebugLevel(1); $d = DB_DataObject::Factory('core_curr_rate'); $d->loadRates(); $hkd = $d->convert(1,'USD','HKD'); - echo "1 USD is ~ $hkd HKD (should be aobut 7.8)\n "; + echo "1 USD is ~ $hkd HKD (should be about 7.75)\n "; die("done"); - - - - - + } function oldversion()