lower any mimetypes

This commit is contained in:
Andy Miller
2017-05-27 09:04:17 -06:00
parent 1b4b941b88
commit 97cf523c85
2 changed files with 13 additions and 0 deletions

View File

@@ -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.
*