- Timestamp:
- 09/30/08 14:01:12 (2 years ago)
- Files:
-
- fMoney.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fMoney.php
r214 r254 Hide Line Numbers 148 148 * Allows setting a callback to clean any formatted values so they can be passed to {@link fNumber} 149 149 * 150 * @param callback $callback The callback to pass formatted strings to. Should accept a formatted string and return a string suitable to passing to the fNumber constructor.150 * @param callback $callback The callback to pass formatted strings to. Should accept a formatted string and a currency code and return a string suitable to passing to the fNumber constructor. 151 151 * @return void 152 152 */ … … 233 233 // Unformat any money value 234 234 if (self::$unformat_callback !== NULL) { 235 $amount = call_user_func(self::$unformat_callback, $amount );235 $amount = call_user_func(self::$unformat_callback, $amount, $this->currency); 236 236 } else { 237 237 $amount = str_replace(
