From 1eecf323f473bc80ea05b4e57cb0e1e7ad4daba5 Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 1 Jun 2019 10:47:11 -0500 Subject: [PATCH] Changed set_int to accept a string, since it can accept shorthand strings like 1M. Casting it to an int was stripping out that information when settings would be submitted. --- core/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config.php b/core/config.php index 8f5c9a06..d40cc19f 100644 --- a/core/config.php +++ b/core/config.php @@ -113,7 +113,7 @@ abstract class BaseConfig implements Config { public $values = []; - public function set_int(string $name, ?int $value): void + public function set_int(string $name, ?string $value): void { $this->values[$name] = parse_shorthand_int($value); $this->save($name);