aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/help_page.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/help_page.rb b/app/models/help_page.rb
index ea9d34e44..064cdc680 100644
--- a/app/models/help_page.rb
+++ b/app/models/help_page.rb
@@ -21,10 +21,10 @@ class HelpPage
self.data ||= {}
if self.content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
- self.content = $POSTMATCH
+ self.content = $' # cryptic name for $POSTMATCH, but since V2.2
self.data.merge! YAML.load($1)
end
-
+
# workaround for special chars
self.content = self.content.gsub('é','é')
self.content = self.content.gsub('è','è')
@@ -66,7 +66,7 @@ class HelpPage
if page.exists?
page.load
else
- raise ActiveRecord::RecordNotFound
+ raise ActiveRecord::RecordNotFound
end
end
end