[0000290] Can't upload files
[fa-stable.git] / includes / ui / ui_view.inc
index 9306aa5d0a84ba1d1598dc9ead62afe924d4d83a..69810222a0ea2f6489c5748126404a5f08c2c5d4 100644 (file)
@@ -734,12 +734,11 @@ function _number_to_words($number)
 
 function price_in_words($amount, $document=0)
 {
-       global $Hooks;
        // use local price_in_words() if the hook is defined
-       if (method_exists($Hooks, 'price_in_words'))
-       {
-               return $Hooks->price_in_words($amount, $document);
-       }
+       $price = hook_price_in_words($amount, $document);
+       if ($price) 
+               return $price;
+
        // Only usefor Remittance and Receipts as default
        if (!($document == ST_SUPPAYMENT || $document == ST_CUSTPAYMENT || $document == ST_CHEQUE))
                return "";