Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments.
Attached images can be displayed inline, using textile image tag (for wiki pages, issue descriptions and forum messages). git-svn-id: http://redmine.rubyforge.org/svn/trunk@541 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
+2
-1
@@ -31,7 +31,8 @@ class Wiki < ActiveRecord::Base
|
||||
|
||||
# find the page with the given title
|
||||
def find_page(title)
|
||||
pages.find_by_title(Wiki.titleize(title || start_page))
|
||||
title = start_page if title.blank?
|
||||
pages.find_by_title(Wiki.titleize(title))
|
||||
end
|
||||
|
||||
# turn a string into a valid page title
|
||||
|
||||
Reference in New Issue
Block a user