|
@@ 387-393 (lines=7) @@
|
| 384 |
|
if(!$sitetree) { |
| 385 |
|
$parentID = self::config()->nested_urls ? 0 : null; |
| 386 |
|
|
| 387 |
|
if($alternatives = static::singleton()->extend('alternateGetByLink', $URLSegment, $parentID)) { |
| 388 |
|
foreach($alternatives as $alternative) { |
| 389 |
|
if($alternative) { |
| 390 |
|
$sitetree = $alternative; |
| 391 |
|
} |
| 392 |
|
} |
| 393 |
|
} |
| 394 |
|
|
| 395 |
|
if(!$sitetree) { |
| 396 |
|
return null; |
|
@@ 417-419 (lines=3) @@
|
| 414 |
|
if(!$next) { |
| 415 |
|
$parentID = (int) $sitetree->ID; |
| 416 |
|
|
| 417 |
|
if($alternatives = static::singleton()->extend('alternateGetByLink', $segment, $parentID)) { |
| 418 |
|
foreach($alternatives as $alternative) if($alternative) $next = $alternative; |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
if(!$next) { |
| 422 |
|
return null; |