summaryrefslogtreecommitdiff
path: root/src/Middleware/LegacyMiddleware.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-10 23:26:23 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-11 00:05:41 +0100
commit68afc74b03f83bb072944911c15af60433280ace (patch)
tree1217a5cbfa75c01d35e8e0d743da379725816bf2 /src/Middleware/LegacyMiddleware.php
parentb878740f80ce7cfe2a0bc53956e3f7e4e0aa2f78 (diff)
Formatting to follow PSR-12
Diffstat (limited to 'src/Middleware/LegacyMiddleware.php')
-rw-r--r--src/Middleware/LegacyMiddleware.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Middleware/LegacyMiddleware.php b/src/Middleware/LegacyMiddleware.php
index 478ffab1..f652e766 100644
--- a/src/Middleware/LegacyMiddleware.php
+++ b/src/Middleware/LegacyMiddleware.php
@@ -82,7 +82,7 @@ class LegacyMiddleware implements MiddlewareInterface
$page = 404;
$title = $translator->translate('Page not found');
- $content = $translator->translate('This page could not be found or you don\'t have permission to view it. You probably have to sign in or register in order to gain access!');
+ $content = $translator->translate('page.404.text');
}
return $this->renderPage($page, $title, $content);
@@ -103,14 +103,17 @@ class LegacyMiddleware implements MiddlewareInterface
case 'ical':
require_once realpath(__DIR__ . '/../../includes/pages/user_ical.php');
user_ical();
+ break;
/** @noinspection PhpMissingBreakStatementInspection */
case 'atom':
require_once realpath(__DIR__ . '/../../includes/pages/user_atom.php');
user_atom();
+ break;
/** @noinspection PhpMissingBreakStatementInspection */
case 'shifts_json_export':
require_once realpath(__DIR__ . '/../../includes/controller/shifts_controller.php');
shifts_json_export_controller();
+ break;
case 'public_dashboard':
return public_dashboard_controller();
case 'angeltypes':