All WikiReference methods now limit results to the current web.
Category lists are now restricted to the current web.
This commit is contained in:
parent
626c135d1e
commit
12743280fb
5 changed files with 33 additions and 27 deletions
|
@ -378,7 +378,7 @@ class WikiController < ApplicationController
|
|||
@category = @params['category']
|
||||
if @category
|
||||
@set_name = "category '#{@category}'"
|
||||
pages = WikiReference.pages_in_category(@category).sort.map { |page_name| @web.page(page_name) }
|
||||
pages = WikiReference.pages_in_category(@web, @category).sort.map { |page_name| @web.page(page_name) }
|
||||
@pages_in_category = PageSet.new(@web, pages)
|
||||
else
|
||||
# no category specified, return all pages of the web
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue