summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--handlers/views_handler_field_numeric.inc2
-rw-r--r--plugins/views_plugin_display.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/handlers/views_handler_field_numeric.inc b/handlers/views_handler_field_numeric.inc
index e8cf765..2afb425 100644
--- a/handlers/views_handler_field_numeric.inc
+++ b/handlers/views_handler_field_numeric.inc
@@ -78,7 +78,7 @@ class views_handler_field_numeric extends views_handler_field {
}
else {
$remainder = abs($value) - intval(abs($value));
- $value = number_format($value, 0, '', $this->options['separator']);
+ $value = number_format(floor($value), 0, '', $this->options['separator']);
if ($remainder) {
// The substr may not be locale safe.
$value .= $this->options['decimal'] . substr($remainder, 2);
diff --git a/plugins/views_plugin_display.inc b/plugins/views_plugin_display.inc
index 6116476..517470d 100644
--- a/plugins/views_plugin_display.inc
+++ b/plugins/views_plugin_display.inc
@@ -1276,7 +1276,7 @@ class views_plugin_display extends views_plugin {
* Perform any necessary changes to the form values prior to storage.
* There is no need for this function to actually store the data.
*/
- function options_submit($form, &$form_state) {
+ function options_submit(&$form, &$form_state) {
$section = $form_state['section'];
switch ($section) {
case 'display_title':