1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00

Add PR #217 - hide compile message for non superusers

This commit is contained in:
BernhardBaumrock
2022-03-08 14:21:03 -05:00
committed by Ryan Cramer
parent d978eccbc9
commit eb6d6971f7

View File

@@ -141,9 +141,9 @@ class AdminThemeUikitCss extends WireData {
$modules->saveConfig($this->adminTheme, 'cssVersion', $this->requireCssVersion);
$this->adminTheme->set('cssVersion', $this->requireCssVersion);
}
$this->message(implode(' ', $messages), Notice::noGroup);
$this->message(implode(' ', $messages), Notice::noGroup | Notice::superuser);
} catch(\Exception $e) {
$this->error('LESS - ' . $e->getMessage(), Notice::noGroup);
$this->error('LESS - ' . $e->getMessage(), Notice::noGroup | Notice::superuser);
}
return $getPath ? $cssFile : $this->fileToUrl($cssFile) . "?v=$cssTime";