From d08e50991bfd78fcbd510f7953e3c02e71cd4237 Mon Sep 17 00:00:00 2001 From: Emerson Jair Date: Fri, 26 Mar 2021 17:16:00 -0300 Subject: [PATCH] Fix minify page rule configuration (#155) --- src/Configurations/PageRulesActions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Configurations/PageRulesActions.php b/src/Configurations/PageRulesActions.php index 27790bd3..db7c6ea7 100755 --- a/src/Configurations/PageRulesActions.php +++ b/src/Configurations/PageRulesActions.php @@ -170,10 +170,12 @@ public function setIPGeoLocationHeader(bool $active) public function setMinification(bool $html, bool $css, bool $javascript) { - $this->addConfigurationOption('minification', [ - 'html' => $this->getBoolAsOnOrOff($html), - 'css' => $this->getBoolAsOnOrOff($css), - 'js' => $this->getBoolAsOnOrOff($javascript), + $this->addConfigurationOption('minify', [ + 'value' => [ + 'html' => $this->getBoolAsOnOrOff($html), + 'css' => $this->getBoolAsOnOrOff($css), + 'js' => $this->getBoolAsOnOrOff($javascript), + ], ]); }