Project

General

Profile

« Previous | Next » 

Revision 400

Added by Matthias over 17 years ago

Fixed root_parent doesn't get updated when moving item in menu (#305)

View differences:

functions.php
267 267
	if($level == 1) {
268 268
		return $parent;
269 269
	} elseif($parent == 0) {
270
		return 0;
270
		return $page_id;
271 271
	} else {
272 272
		// Figure out what the root parents id is
273 273
		$parent_ids = array_reverse(get_parent_ids($page_id));

Also available in: Unified diff