Project

General

Profile

« Previous | Next » 

Revision 631

Added by thorn almost 17 years ago

changeset 627: menu_link and search/search.php needs some minor changes, too.

View differences:

modify.php
41 41
if($query_page = $database->query("SELECT DISTINCT p.* FROM $table_p AS p INNER JOIN $table_s AS s ON p.page_id=s.page_id WHERE s.module != 'menu_link' AND p.page_id != '$page_id' AND parent = '0' ORDER BY position")) {
42 42
	while($page = $query_page->fetchRow()) {
43 43
		if($admin->page_is_visible($page)) {
44
			$links[$page['page_id']]='/'.$page['page_title'];
44
			$links[$page['page_id']]='/'.$page['menu_title'];
45 45
			if($query_subpage = $database->query("SELECT DISTINCT p.* FROM $table_p AS p INNER JOIN $table_s AS s ON p.page_id=s.page_id WHERE s.module != 'menu_link' AND p.page_id != '$page_id' AND root_parent = '{$page['page_id']}' ORDER BY level")) {
46 46
				while($sub = $query_subpage->fetchRow()) {
47 47
					if($admin->page_is_visible($sub)) {

Also available in: Unified diff