Fixed All Pages with a category
This commit is contained in:
parent
614a48c6ff
commit
a2cb920489
2 changed files with 3 additions and 2 deletions
|
@ -337,7 +337,8 @@ class WikiController < ApplicationController
|
|||
@category = @params['category']
|
||||
if @category
|
||||
@set_name = "category '#{@category}'"
|
||||
@pages_in_category = WikiReference.pages_in_category(@category).map { |page_name| @web.page(page_name) }.by_name
|
||||
pages = WikiReference.pages_in_category(@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
|
||||
@pages_in_category = @web.select_all.by_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue