|
@@ 351-353 (lines=3) @@
|
| 348 |
|
if(!$sitetree) { |
| 349 |
|
$parentID = self::config()->nested_urls ? 0 : null; |
| 350 |
|
|
| 351 |
|
if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $URLSegment, $parentID)) { |
| 352 |
|
foreach($alternatives as $alternative) if($alternative) $sitetree = $alternative; |
| 353 |
|
} |
| 354 |
|
|
| 355 |
|
if(!$sitetree) return false; |
| 356 |
|
} |
|
@@ 373-375 (lines=3) @@
|
| 370 |
|
if(!$next) { |
| 371 |
|
$parentID = (int) $sitetree->ID; |
| 372 |
|
|
| 373 |
|
if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $segment, $parentID)) { |
| 374 |
|
foreach($alternatives as $alternative) if($alternative) $next = $alternative; |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
if(!$next) return false; |
| 378 |
|
} |