Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed Nov 9, 2017
1 parent 982bc1d commit 361f982
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function getSettingDefaults()
$settings = array(
'image_max_width' => 1920,
'image_max_height' => 1080,
'segmentSize'=> 10,
'showComments'=> 0,
'segmentSize' => 10,
'showComments' => 0,
'commentCode' => '',
'showFeatures' => 0,
'featureNumber' => 3,
Expand Down Expand Up @@ -105,11 +105,13 @@ private function frontPage(Request $request)
$featureFactory = new \stories\Factory\FeatureFactory();
$settings = new \phpws2\Settings;
if ($settings->get('stories', 'showFeatures')) {
\Layout::add($featureFactory->show($request), 'stories', 'features', true);
\Layout::add($featureFactory->show($request), 'stories', 'features',
true);
}

if ($settings->get('stories', 'listStories')) {
\Layout::add($entryFactory->showStories($request), 'stories', 'stories', true);
\Layout::add($entryFactory->showStories($request), 'stories',
'stories', true);
}
}

Expand Down

0 comments on commit 361f982

Please sign in to comment.