Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jenskooij committed Sep 22, 2017
2 parents ff96ae8 + bb453fc commit 003b9e8
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/components/BaseComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,6 @@ private function getTemplatePathFromApplication($application, $templateDir)
return $templatePath;
}

/**
* @param $templatePath
* @param $obClean
* @return mixed|string
*/
private function includeTemplateFile($templatePath, $obClean)
{
if ($obClean) {
include($templatePath);
return ob_get_contents();
} else {
return include($templatePath);
}
}

/**
* @param string $templatePath
* @param Application $application
Expand All @@ -220,7 +205,12 @@ private function extractParametersAndIncludeTemplateFile($templatePath, $applica
}
}
extract($this->parameters);
return $this->includeTemplateFile($templatePath, $obClean);
if ($obClean) {
include($templatePath);
return ob_get_contents();
} else {
return include($templatePath);
}
}
}
}

0 comments on commit 003b9e8

Please sign in to comment.