From 5e15495c26e337ac6aaaccd1bd38b3ada80fa32c Mon Sep 17 00:00:00 2001 From: Joseph Cohen Date: Wed, 31 Dec 2014 19:48:49 -0600 Subject: [PATCH] Added not found page title lang --- app/lang/en/cachet.php | 1 + app/start/global.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lang/en/cachet.php b/app/lang/en/cachet.php index 61f06fcd..37a70187 100644 --- a/app/lang/en/cachet.php +++ b/app/lang/en/cachet.php @@ -56,6 +56,7 @@ return [ 'settings_saved' => 'Settings saved.', 'settings_not_saved' => 'Settings could not be saved.', 'not_found' => 'Page Not Found', + 'not_found_title' => 'That page went missing!', 'not_found_message' => 'Sorry, but the page you are looking for has not been found. Check the URL for errors and try again.', 'not_found_link' => 'Return to homepage', ], diff --git a/app/start/global.php b/app/start/global.php index 5cfc2b34..c90d72c8 100644 --- a/app/start/global.php +++ b/app/start/global.php @@ -59,7 +59,7 @@ API::error(function (\Illuminate\Database\Eloquent\ModelNotFoundException $excep App::missing(function ($exception) { if (Request::is('dashboard*') or Request::is('api*')) { return Response::view('errors.404', [ - 'pageTitle' => 'That page went missing!', + 'pageTitle' => Lang::get('cachet.dashboard.not_found_title'), ], 404); }