Project

General

Profile

« Previous | Next » 

Revision 595

Added by doc over 16 years ago

Removed changes introduced with Changeset 593 (need to agree if we want add this to the core with WB2.7)

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)) {
48 48
						$parent_link = (array_key_exists($sub['parent'],$links))?$links[$sub['parent']]:"";
49
						$links[$sub['page_id']]=$parent_link.'/'.$sub['page_title'];
49
						$links[$sub['page_id']]=$parent_link.'/'.$sub['menu_title'];
50 50
					}
51 51
				}
52 52
			}

Also available in: Unified diff