Skip to content

Conversation

@alikon
Copy link
Contributor

@alikon alikon commented Nov 3, 2016

Pull Request for Issue #10186 .

Summary of Changes

added support support for scss,sass source formats on update

see #12712 for more info

}

$params = json_decode($params, true);
$sourceformats = explode(',', $params['source_formats']);
Copy link
Contributor

@andrepereiradasilva andrepereiradasilva Nov 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably could replace all above code by just:

$sourceFormats = explode(',', JComponentHelper::getParams('com_templates')->get('source_formats', 'txt,less,ini,xml,js,php,css,scss,sass'));

not sure how explode will react if the is no , in source_formats param value tough

@wilsonge
Copy link
Contributor

wilsonge commented Nov 3, 2016

I actually think this is wrong. If people want to retrospectively add this they can. But imho we shouldn't be changing this for them (ditto for the media manager params)

@mbabker
Copy link
Contributor

mbabker commented Nov 3, 2016

The other thing is looking at this, if someone removed these items from their configuration, an update would restore them. So there probably isn't a good way to do this even if we wanted to.

@alikon
Copy link
Contributor Author

alikon commented Nov 3, 2016

closing as is too late for doing it now
thanks all for your feedback

@alikon alikon closed this Nov 3, 2016
@alikon alikon deleted the patch-87 branch November 3, 2016 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants