Format -$5 as -$5 instead of $-5

This commit is contained in:
Belle Aerni committed 2022-10-16 14:02:11 -07:00
1 parent 101b9b02ce
commit 3bae8cf900
1 file changed
+2
+2
View File
@@ -105,6 +105,8 @@ class Guest extends \Api_Abstract
return $p;
}
$c['format'] = ($p >= 0) ? $c['format'] : '-' . $c['format'];
$p = abs($p);
return str_replace('{{price}}', $p, $c['format']);
}
}