mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
CustomVariableNumber: do not let locales influence...
...float rendering
This commit is contained in:
parent
a74381ebc9
commit
df3b23834c
@ -37,6 +37,11 @@ class CustomVariableNumber extends CustomVariable
|
||||
|
||||
public function toConfigString()
|
||||
{
|
||||
return (string) $this->value;
|
||||
if (is_int($this->value)) {
|
||||
return (string) $this->value;
|
||||
} else {
|
||||
// Hint: this MUST NOT respect locales
|
||||
return sprintf('%F', $this->value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user