Revision 1289
Added by kweitzel over 14 years ago
fck_wbmodules.php | ||
---|---|---|
38 | 38 |
// Function to generate page list |
39 | 39 |
function gen_page_list($parent) { |
40 | 40 |
global $template, $database, $admin; |
41 |
$get_pages = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent'"); |
|
41 |
$get_pages = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent' order by position");
|
|
42 | 42 |
while($page = $get_pages->fetchRow()) { |
43 | 43 |
// method page_is_visible was introduced with WB 2.7 |
44 | 44 |
if(method_exists($admin, 'page_is_visible') && !$admin->page_is_visible($page)) |
... | ... | |
70 | 70 |
// Get pages and put them into the pages list |
71 | 71 |
$template->set_block('main_block', 'page_list_block', 'page_list'); |
72 | 72 |
$database = new database(); |
73 |
$get_pages = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '0'"); |
|
73 |
$get_pages = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '0' order by position");
|
|
74 | 74 |
if($get_pages->numRows() > 0) { |
75 | 75 |
// Loop through pages |
76 | 76 |
while($page = $get_pages->fetchRow()) { |
Also available in: Unified diff
Branch 2.8.1 merged back into Trunk