@@ -169,21 +169,6 class WikiController < ApplicationController | |||||
169 | redirect_to :action => 'page_index', :id => @project |
|
169 | redirect_to :action => 'page_index', :id => @project | |
170 | end |
|
170 | end | |
171 |
|
171 | |||
172 | # display special pages |
|
|||
173 | def special |
|
|||
174 | page_title = params[:page].downcase |
|
|||
175 | case page_title |
|
|||
176 | when 'export' |
|
|||
177 | redirect_to :action => 'export', :id => @project # Compatibility stub while refactoring |
|
|||
178 | return |
|
|||
179 | else |
|
|||
180 | # requested special page doesn't exist, redirect to default page |
|
|||
181 | redirect_to :action => 'index', :id => @project, :page => nil |
|
|||
182 | return |
|
|||
183 | end |
|
|||
184 | render :action => "special_#{page_title}" |
|
|||
185 | end |
|
|||
186 |
|
||||
187 | # Export wiki to a single html file |
|
172 | # Export wiki to a single html file | |
188 | def export |
|
173 | def export | |
189 | if User.current.allowed_to?(:export_wiki_pages, @project) |
|
174 | if User.current.allowed_to?(:export_wiki_pages, @project) |
General Comments 0
You need to be logged in to leave comments.
Login now