From 1345ebdd3c422592d5af2bc6ce1301bb31cb2914 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Mon, 27 Apr 2015 14:57:07 +0200 Subject: [PATCH] helpers --- src/Http/Controllers/PublicController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Http/Controllers/PublicController.php b/src/Http/Controllers/PublicController.php index 11cfcbd..8ecdc17 100644 --- a/src/Http/Controllers/PublicController.php +++ b/src/Http/Controllers/PublicController.php @@ -3,9 +3,7 @@ use App; use App\Http\Controllers\Controller; -use Config; use Route; -use URL; class PublicController extends Controller { @@ -13,7 +11,7 @@ class PublicController extends Controller public function __construct() { - $this->modules = Config::get('sitemap.modules'); + $this->modules = config('sitemap.modules'); } /** @@ -28,14 +26,14 @@ public function generate() // set cache (key (string), duration in minutes (Carbon|Datetime|int), turn on/off (boolean)) // by default cache is disabled - if (Config::get('app.cache')) { + if (config('typicms.cache')) { $sitemap->setCache('laravel.sitemap', 3600); } // check if there is cached sitemap and build new only if is not if (! $sitemap->isCached()) { - foreach (Config::get('translatable.locales') as $locale) { + foreach (config('translatable.locales') as $locale) { App::setLocale($locale);