|
@@ 305-307 (lines=3) @@
|
| 302 |
|
if(!$sitetree) { |
| 303 |
|
$parentID = self::config()->nested_urls ? 0 : null; |
| 304 |
|
|
| 305 |
|
if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $URLSegment, $parentID)) { |
| 306 |
|
foreach($alternatives as $alternative) if($alternative) $sitetree = $alternative; |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
if(!$sitetree) return false; |
| 310 |
|
} |
|
@@ 327-329 (lines=3) @@
|
| 324 |
|
if(!$next) { |
| 325 |
|
$parentID = (int) $sitetree->ID; |
| 326 |
|
|
| 327 |
|
if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $segment, $parentID)) { |
| 328 |
|
foreach($alternatives as $alternative) if($alternative) $next = $alternative; |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
if(!$next) return false; |
| 332 |
|
} |