Commit 9505eabc authored by Benjamin Neff's avatar Benjamin Neff

Fix ApplicationHelper#changelog_url with frozen strings

parent a6b6251b
......@@ -17,8 +17,9 @@ module ApplicationHelper
return AppConfig.settings.changelog_url.get if AppConfig.settings.changelog_url.present?
url = "https://github.com/diaspora/diaspora/blob/master/Changelog.md"
url.sub!('/master/', "/#{AppConfig.git_revision}/") if AppConfig.git_revision.present?
url
return url if AppConfig.git_revision.blank?
url.sub("/master/", "/#{AppConfig.git_revision}/")
end
def source_url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment