Browse Source

[fix] page pad url

Maxime Alves LIRMM@home 3 years ago
parent
commit
80cb90705b
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/page.cpp

+ 3
- 2
src/page.cpp View File

@@ -292,11 +292,12 @@ bool page::load(content::page_form &form)
292 292
 	r=sql<<	"SELECT title,content,pad_url,sidebar,users_only "
293 293
 		"FROM pages WHERE lang=? AND slug=?" << locale_name << slug << cppdb::row;
294 294
 	if(!r.empty()) {
295
-		std::string title,content,sidebar;
295
+		std::string title,content,pad_url,sidebar;
296 296
 		int users_only;
297
-		r >> title >> content >> sidebar >> users_only;
297
+		r >> title >> content >> pad_url >> sidebar >> users_only;
298 298
 		form.title.value(title);
299 299
 		form.content.value(content);
300
+		form.pad_url.value(pad_url);
300 301
 		form.sidebar.value(sidebar);
301 302
 		form.users_only.value(users_only);
302 303
 		return true;

Loading…
Cancel
Save