lib/scms/scms-helpers.rb in scms-3.1.1 vs lib/scms/scms-helpers.rb in scms-3.2.0
- old
+ new
@@ -1,8 +1,12 @@
module ScmsHelpers
require 'find'
def ScmsHelpers.isActive(pagename, activepage)
+ return active = "active" if activepage == pagename
+ end
+
+ def ScmsHelpers.isActiveIfContains(pagename, activepage)
return active = "active" if activepage.include? pagename
end
def ScmsHelpers.txt_2_html(rawsnippet)
if rawsnippet != nil