|
|
@ -21,7 +21,15 @@ namespace FLocal.IISHandler.handlers { |
|
|
|
override protected XElement[] getSpecificData(WebContext context) { |
|
|
|
override protected XElement[] getSpecificData(WebContext context) { |
|
|
|
Board board = Board.LoadById(int.Parse(context.requestParts[1])); |
|
|
|
Board board = Board.LoadById(int.Parse(context.requestParts[1])); |
|
|
|
PageOuter pageOuter = PageOuter.createFromGet(context.requestParts, context.userSettings.postsPerPage); |
|
|
|
PageOuter pageOuter = PageOuter.createFromGet(context.requestParts, context.userSettings.postsPerPage); |
|
|
|
IEnumerable<Thread> threads = board.getThreads(pageOuter, context); |
|
|
|
IEnumerable<Thread> threads = board.getThreads( |
|
|
|
|
|
|
|
pageOuter, |
|
|
|
|
|
|
|
context, new SortSpec[] { |
|
|
|
|
|
|
|
new SortSpec( |
|
|
|
|
|
|
|
Thread.TableSpec.instance.getColumnSpec(Thread.TableSpec.FIELD_ID), |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
return new XElement[] { |
|
|
|
return new XElement[] { |
|
|
|
new XElement("currentLocation", board.exportToXmlSimpleWithParent(context)), |
|
|
|
new XElement("currentLocation", board.exportToXmlSimpleWithParent(context)), |
|
|
|
new XElement("boards", from subBoard in board.subBoards select subBoard.exportToXml(context, true)), |
|
|
|
new XElement("boards", from subBoard in board.subBoards select subBoard.exportToXml(context, true)), |
|
|
|