Permalink
Browse files

Use @wiki.page_class in Gollum::Markup where appropriate. Fixes #63.

  • Loading branch information...
1 parent 996f81d commit 74b724833492c8eed593dd622470c48976359f67 @mojombo mojombo committed Oct 28, 2010
Showing with 7 additions and 2 deletions.
  1. +5 −0 HISTORY.md
  2. +2 −2 lib/gollum/markup.rb
View
@@ -1,3 +1,8 @@
+# HEAD
+
+* Bug Fixes
+ * Use @wiki.page_class in Gollum::Markup where appropriate (#63).
+
# 1.1.0 / 2010-10-28
* Major Enhancements
@@ -284,15 +284,15 @@ def process_file_link_tag(tag, no_follow = false)
def process_page_link_tag(tag, no_follow = false)
parts = tag.split('|')
name = parts[0].strip
- cname = Page.cname((parts[1] || parts[0]).strip)
+ cname = @wiki.page_class.cname((parts[1] || parts[0]).strip)
tag = if name =~ %r{^https?://} && parts[1].nil?
%{<a href="#{name}">#{name}</a>}
else
presence = "absent"
link_name = cname
page, extra = find_page_from_name(cname)
if page
- link_name = Page.cname(page.name)
+ link_name = @wiki.page_class.cname(page.name)
presence = "present"
end
link = ::File.join(@wiki.base_path, CGI.escape(link_name))

0 comments on commit 74b7248

Please sign in to comment.