removed page title when showing a wiki page

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@304 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-03-06 18:35:25 +00:00
parent 2a0cdcb631
commit 67b92ae1df
3 changed files with 12 additions and 14 deletions
+1
View File
@@ -44,6 +44,7 @@ class WikiController < ApplicationController
@page = @wiki.find_or_new_page(params[:page])
@page.content = WikiContent.new(:page => @page) if @page.new_record?
@content = @page.content
@content.text = "h1. #{@page.pretty_title}" if @content.text.empty?
@content.comment = nil
if request.post?
@content.text = params[:content][:text]