From 154f93c72ef3930bedcb2840f5bc5b09cf83c8ad Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 6 Aug 2015 16:17:05 +0930 Subject: [PATCH] Flush client assets when custom LESS is updated --- framework/core/src/Api/Actions/ConfigAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Api/Actions/ConfigAction.php b/framework/core/src/Api/Actions/ConfigAction.php index b9023b28c..011bd9874 100644 --- a/framework/core/src/Api/Actions/ConfigAction.php +++ b/framework/core/src/Api/Actions/ConfigAction.php @@ -41,7 +41,7 @@ class ConfigAction implements Action foreach ($config as $k => $v) { $this->settings->set($k, $v); - if (strpos($k, 'theme_') === 0) { + if (strpos($k, 'theme_') === 0 || $k === 'custom_less') { $forum = app('Flarum\Forum\Actions\ClientAction'); $forum->flushAssets();