|
@@ -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;
|