From a79bbfa1a23838b91e9a08f7014c2c7304976714 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 10 May 2016 19:17:28 +0200 Subject: Migrated messages to modules --- inc/util.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc/util.inc.php') diff --git a/inc/util.inc.php b/inc/util.inc.php index f951290b..5eed3ddc 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -98,11 +98,11 @@ SADFACE; */ public static function verifyToken() { - if (Session::get('token') === false) + if (Session::get('main.token') === false) return true; - if (isset($_REQUEST['token']) && Session::get('token') === $_REQUEST['token']) + if (isset($_REQUEST['main.token']) && Session::get('main.token') === $_REQUEST['main.token']) return true; - Message::addError('token'); + Message::addError('main.token'); return false; } @@ -265,7 +265,7 @@ SADFACE; @ob_end_clean(); $fh = @fopen($file, 'rb'); if ($fh === false) { - Message::addError('error-read', $file); + Message::addError('main.error-read', $file); return false; } Header('Content-Type: application/octet-stream', true); -- cgit v1.2.3-55-g7522