Fix class name

This commit is contained in:
Flavio Copes
2015-11-13 18:45:55 +01:00
parent e81cd547fd
commit 949c96fe3b

View File

@@ -87,7 +87,7 @@ class AdminController
public function execute()
{
if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
if (method_exists('Utils', 'getNonce')) {
if (method_exists('Grav\Common\Utils', 'getNonce')) {
if (!isset($this->post['admin-nonce']) || !Utils::verifyNonce($this->post['admin-nonce'], 'admin-form')) {
$this->admin->setMessage('Unauthorized', 'error');
return false;