]> source.dussan.org Git - redmine.git/commitdiff
Kepp the arguments clean (#26043).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 8 Jul 2017 13:54:26 +0000 (13:54 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 8 Jul 2017 13:54:26 +0000 (13:54 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16775 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/wiki_controller.rb
app/views/wiki/_new_modal.html.erb
app/views/wiki/show.html.erb

index 8064cd64fb42fba74f89e60edf2e4ad5c9b08ced..25e59adb0c921390ff96db6dfd5d3a7ab9387d38 100644 (file)
@@ -70,7 +70,7 @@ class WikiController < ApplicationController
       @page.title = '' unless editable?
       @page.validate
       if @page.errors[:title].blank?
-        path = project_wiki_page_path(:project_id => @project, :id => @page.title, :parent => params[:parent])
+        path = project_wiki_page_path(@project, @page.title, :parent => params[:parent])
         respond_to do |format|
           format.html { redirect_to path }
           format.js   { render :js => "window.location = #{path.to_json}" }
index 472bbd63f2d912b1dd84c9df8d30f254755456a9..8c9d13a7586fccbb7d88e2241bd1af14d36b58e1 100644 (file)
@@ -1,7 +1,7 @@
 <h3 class="title"><%=l(:label_wiki_page_new)%></h3>
 
 <%= labelled_form_for :page, @page,
-            :url => new_project_wiki_page_path(:project_id => @project, :parent => params[:parent]),
+            :url => new_project_wiki_page_path(@project, :parent => params[:parent]),
             :method => 'post',
             :remote => true do |f| %>
 
index a77421afa728a063444dad141b7a803105d10831..c7d186176d8e5b08b348312b0631771552bf38cd 100644 (file)
@@ -1,6 +1,6 @@
 <div class="contextual">
 <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
-<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(:project_id => @project, :parent => @page.title), :remote => true, :class => 'icon icon-add' %>
+<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project, :parent => @page.title), :remote => true, :class => 'icon icon-add' %>
 <% end %>
 <% if @editable %>
 <% if @content.current_version? %>