|
@@ 363-365 (lines=3) @@
|
| 360 |
|
if(!$sitetree) { |
| 361 |
|
$parentID = self::config()->nested_urls ? 0 : null; |
| 362 |
|
|
| 363 |
|
if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $URLSegment, $parentID)) { |
| 364 |
|
foreach($alternatives as $alternative) if($alternative) $sitetree = $alternative; |
| 365 |
|
} |
| 366 |
|
|
| 367 |
|
if(!$sitetree) return false; |
| 368 |
|
} |
|
@@ 385-387 (lines=3) @@
|
| 382 |
|
if(!$next) { |
| 383 |
|
$parentID = (int) $sitetree->ID; |
| 384 |
|
|
| 385 |
|
if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $segment, $parentID)) { |
| 386 |
|
foreach($alternatives as $alternative) if($alternative) $next = $alternative; |
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
if(!$next) return false; |
| 390 |
|
} |