[Git][noosfero/noosfero][master] always return an string in addthis_javascript method
Leandro Nunes
gitlab at mg.gitlab.com
Fri May 6 09:53:39 BRT 2016
Leandro Nunes pushed to branch master at Noosfero / noosfero
Commits:
fdc47ff0 by Leandro Nunes dos Santos at 2016-05-06T09:53:14-03:00
always return an string in addthis_javascript method
- - - - -
1 changed file:
- app/helpers/layout_helper.rb
Changes:
=====================================
app/helpers/layout_helper.rb
=====================================
--- a/app/helpers/layout_helper.rb
+++ b/app/helpers/layout_helper.rb
@@ -97,9 +97,7 @@ module LayoutHelper
end
def addthis_javascript
- if NOOSFERO_CONF['addthis_enabled']
- '<script src="https://s7.addthis.com/js/152/addthis_widget.js"></script>'
- end
+ NOOSFERO_CONF['addthis_enabled'] ? '<script src="https://s7.addthis.com/js/152/addthis_widget.js"></script>' : ''
end
end
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/fdc47ff032c5bb8decbdcf59de407ec94fcf7fa1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160506/62ff883f/attachment.html>
More information about the Noosfero-dev
mailing list