aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 12390b626..6e39fe97e 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -28,7 +28,7 @@ class FreshRSS extends Minz_FrontController {
FreshRSS_Context::initSystem();
if (FreshRSS_Context::$system_conf == null) {
$message = 'Error during context system init!';
- Minz_Error::error(500, [$message], false);
+ Minz_Error::error(500, $message, false);
die($message);
}
@@ -51,7 +51,7 @@ class FreshRSS extends Minz_FrontController {
}
if (FreshRSS_Context::$user_conf == null) {
$message = 'Error during context user init!';
- Minz_Error::error(500, [$message], false);
+ Minz_Error::error(500, $message, false);
die($message);
}
@@ -84,10 +84,7 @@ class FreshRSS extends Minz_FrontController {
)) {
// Token-based protection against XSRF attacks, except for the login or self-create user forms
self::initI18n();
- Minz_Error::error(403, array('error' => array(
- _t('feedback.access.denied'),
- ' [CSRF]'
- )));
+ Minz_Error::error(403, ['error' => [_t('feedback.access.denied'), ' [CSRF]']]);
}
}
}