Updated PagedList aswell.

This commit is contained in:
Relintai 2022-01-08 12:54:36 +01:00
parent 4cbea7fd06
commit bf7948be47
2 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@
#include "core/html/html_builder.h" #include "core/html/html_builder.h"
void PagedList::index(Request *request) { void PagedList::handle_request_main(Request *request) {
const String path = request->get_current_path_segment(); const String path = request->get_current_path_segment();
if (request->get_remaining_segment_count() == 0) { if (request->get_remaining_segment_count() == 0) {
@ -31,7 +31,7 @@ void PagedList::load() {
} }
PagedList::PagedList() : PagedList::PagedList() :
Object() { WebNode() {
main_page = new ListPage(); main_page = new ListPage();
articles = new PagedArticle(); articles = new PagedArticle();

View File

@ -1,18 +1,18 @@
#ifndef PAGED_LIST_H #ifndef PAGED_LIST_H
#define PAGED_LIST_H #define PAGED_LIST_H
#include "core/object.h"
#include "core/string.h" #include "core/string.h"
#include "core/http/web_node.h"
#include "modules/list_page/list_page.h" #include "modules/list_page/list_page.h"
#include "modules/paged_article/paged_article.h" #include "modules/paged_article/paged_article.h"
class PagedList : public Object { class PagedList : public WebNode {
RCPP_OBJECT(PagedList, Object); RCPP_OBJECT(PagedList, WebNode);
public: public:
void index(Request *request); void handle_request_main(Request *request);
void load(); void load();