Commit fdc47ff032c5bb8decbdcf59de407ec94fcf7fa1

Authored by Leandro Santos
1 parent a2f3a18d

always return an string in addthis_javascript method

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
app/helpers/layout_helper.rb
@@ -97,9 +97,7 @@ module LayoutHelper @@ -97,9 +97,7 @@ module LayoutHelper
97 end 97 end
98 98
99 def addthis_javascript 99 def addthis_javascript
100 - if NOOSFERO_CONF['addthis_enabled']  
101 - '<script src="https://s7.addthis.com/js/152/addthis_widget.js"></script>'  
102 - end 100 + NOOSFERO_CONF['addthis_enabled'] ? '<script src="https://s7.addthis.com/js/152/addthis_widget.js"></script>' : ''
103 end 101 end
104 102
105 end 103 end