Permalink
Browse files

Updated some plugins

  • Loading branch information...
1 parent d7831a5 commit 9ac0786c5469d6d7a84f92168f6a885d7cbc74ae Qiushi (Billy) He committed with jamesu Nov 17, 2009
@@ -64,11 +64,11 @@ def find_main_wiki_page
end
def find_wiki_page
- @wiki_page = wiki_pages.find(params[:id], :scope => @active_project)
+ @wiki_page = wiki_pages.find(params[:id], :scope => @active_project.id.to_s)
end
def find_sidebar_page
- @wiki_sidebar = wiki_pages.find("sidebar", :scope => @active_project) rescue nil
+ @wiki_sidebar = wiki_pages.find("sidebar", :scope => @active_project.id.to_s) rescue nil
@content_for_sidebar = @wiki_sidebar.nil? ? nil : 'wiki_sidebar'
end
end
@@ -130,7 +130,7 @@ def set_slug
end
# If we're renaming back to a previously used friendly_id, delete the
# slug so that we can recycle the name without having to use a sequence.
- slugs.find(:all, :conditions => {:name => slug_text, :scope => scope).each { |s| s.destroy }
+ slugs.find(:all, :conditions => {:name => slug_text, :scope => scope}).each { |s| s.destroy }
slugs.build slug_attributes
end
end

0 comments on commit 9ac0786

Please sign in to comment.