Skip to content

Commit

Permalink
helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Apr 27, 2015
1 parent aef93ab commit 1345ebd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Http/Controllers/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@

use App;
use App\Http\Controllers\Controller;
use Config;
use Route;
use URL;

class PublicController extends Controller
{
private $modules = array();

public function __construct()
{
$this->modules = Config::get('sitemap.modules');
$this->modules = config('sitemap.modules');
}

/**
Expand All @@ -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);

Expand Down

0 comments on commit 1345ebd

Please sign in to comment.