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:
committed by
Ryan Cramer
parent
d978eccbc9
commit
eb6d6971f7
@@ -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";
|
||||
|
Reference in New Issue
Block a user