Revision 400
Added by Matthias almost 19 years ago
| trunk/CHANGELOG | ||
|---|---|---|
| 12 | 12 |
|
| 13 | 13 |
------------------------------------- 2.6.5 ------------------------------------- |
| 14 | 14 |
24-Dez-2006 Matthias Gallas |
| 15 |
# Fixed root_parent doesn't get updated when moving item in menu (#305) |
|
| 15 | 16 |
! Changed all copyright notices to include now 2007 |
| 16 | 17 |
23-Dez-2006 Matthias Gallas |
| 17 | 18 |
# Fixed IE allows to set a page as parent of itself (#320) |
| trunk/wb/framework/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
Fixed root_parent doesn't get updated when moving item in menu (#305)