mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +01:00
lower any mimetypes
This commit is contained in:
@@ -574,6 +574,17 @@ class Admin
|
||||
return $data[$type];
|
||||
}
|
||||
|
||||
protected function hasErrorMessage()
|
||||
{
|
||||
$msgs = $this->grav['messages']->all();
|
||||
foreach ($msgs as $msg) {
|
||||
if (isset($msg['scope']) && $msg['scope'] === 'error') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns blueprints for the given type.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user