function smartyModifierFormatQty($qty, $currency = null)
{
    if ($currency) {
        return PP::smartyFormatQty(array('qty' => $qty, 'currency' => $currency));
    } else {
        return PP::smartyFormatQty(array('qty' => $qty));
    }
}