Skip to content

Commit

Permalink
Merge pull request #206 from barik94/patch-1
Browse files Browse the repository at this point in the history
Handle option if it's already array
  • Loading branch information
LogansUA authored Sep 14, 2016
2 parents f84c8bc + 745028b commit db39160
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Twig/Extension/StfalconTinymceExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ public function tinymceInit($options = array())
foreach ($config['theme'] as $themeName => $themeOptions) {
if (isset($themeOptions['content_css'])) {
// As there may be multiple CSS Files specified we need to parse each of them individually
$cssFiles = explode(',', $themeOptions['content_css']);
$cssFiles = $themeOptions['content_css'];
if (!is_array($themeOptions['content_css'])) {
$cssFiles = explode(',', $themeOptions['content_css']);
}

foreach ($cssFiles as $idx => $file) {
$cssFiles[$idx] = $this->getAssetsUrl(trim($file)); // we trim to be sure we get the file without spaces.
Expand Down

0 comments on commit db39160

Please sign in to comment.