From 3107341af585fcc5527b5aaa5eac740ef66698b1 Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Sat, 28 May 2005 23:13:01 +0000 Subject: [PATCH] Corrected how orphan page names are rendered in All Pages list --- app/helpers/application_helper.rb | 2 +- app/views/wiki/list.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cad785c0..4e244464 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 diff --git a/app/views/wiki/list.rhtml b/app/views/wiki/list.rhtml index b38ebc2b..34a93798 100644 --- a/app/views/wiki/list.rhtml +++ b/app/views/wiki/list.rhtml @@ -56,7 +56,7 @@