Flush client assets when custom LESS is updated

This commit is contained in:
Toby Zerner 2015-08-06 16:17:05 +09:30
parent c90cc00e88
commit 154f93c72e

View File

@ -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();