Corrected how orphan page names are rendered in All Pages list

This commit is contained in:
Alexey Verkhovsky 2005-05-28 23:13:01 +00:00
parent bc6f2c9bbc
commit 3107341af5
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ module ApplicationHelper
# Creates a hyperlink to a Wiki page, without checking if the page exists or not
def link_to_existing_page(page, text = nil, html_options = {})
link_to(
text || page.name,
text || page.plain_name,
{:web => @web.address, :action => 'show', :id => page.name, :only_path => true},
html_options)
end