Commit 4d494be7 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fixed an error for the english version

parent a0e56f5b
......@@ -4,9 +4,9 @@ namespace App\Providers;
use Illuminate\Queue\Events\JobProcessed;
use Illuminate\Queue\Events\JobProcessing;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\ServiceProvider;
use Queue;
use Illuminate\Support\Facades\Redis;
use Request;
class AppServiceProvider extends ServiceProvider
......@@ -24,9 +24,12 @@ class AppServiceProvider extends ServiceProvider
* We will change the Locale to en
*/
$host = Request::header("X_Forwarded_Host", "");
if (empty($host)) {
$host = Request::header("Host", "");
}
if(stripos($host, "metager.org") !== FALSE){
App::setLocale('en');
if (stripos($host, "metager.org") !== false) {
\App::setLocale('en');
}
# Wir loggen im Redis-System für jede Sekunde des Tages, wie viele Worker aktiv am Laufen waren.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment