This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
forked from vanilla/vanilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Syncing files from
cloud/master
to master
- Loading branch information
1 parent
3bbda7a
commit dfe2732
Showing
72 changed files
with
876 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
/** | ||
* @author Dan Redman <[email protected]> | ||
* @copyright 2009-2021 Higher Logic LLC. | ||
* @copyright 2009-2022 Higher Logic LLC. | ||
* @license GPL-2.0-only | ||
*/ | ||
|
||
|
@@ -21,8 +21,9 @@ | |
use Vanilla\Layout\Providers\MutableLayoutProviderInterface; | ||
use Vanilla\Layout\Resolvers\ReactResolver; | ||
use Vanilla\Layout\Section\AbstractLayoutSection; | ||
use Vanilla\Site\SiteSectionModel; | ||
use Vanilla\Subcommunities\Models\SubcommunitySiteSection; | ||
use Vanilla\Utility\SchemaUtils; | ||
use Vanilla\Web\CacheControlConstantsInterface; | ||
use Vanilla\Widgets\React\ReactWidgetInterface; | ||
|
||
/** | ||
|
@@ -378,14 +379,22 @@ public function get_lookupHydrate(array $query = []): Data { | |
|
||
$in = $this->schema([ | ||
'layoutViewType:s', | ||
'recordID:i', | ||
'recordID:s', | ||
'recordType:s', | ||
'params:o?', | ||
], 'in'); | ||
$parsedQuery = $in->validate($query); | ||
$layoutID = $this->layoutViewModel->getLayoutIdLookup($parsedQuery['layoutViewType'], $parsedQuery['recordType'], $parsedQuery['recordID']); | ||
$query = $in->validate($query); | ||
|
||
[$layoutViewType, $recordType, $recordID] = $this->layoutViewModel->getProviderLayoutIdLookupParams( | ||
$query['layoutViewType'], | ||
$query['recordType'], | ||
$query['recordID'] | ||
); | ||
|
||
$layoutID = $this->layoutViewModel->getLayoutIdLookup($layoutViewType, $recordType, $recordID); | ||
|
||
if ($layoutID === '') { | ||
$fileLayoutView = $this->layoutHydrator->getLayoutViewType($parsedQuery['layoutViewType']); | ||
$fileLayoutView = $this->layoutHydrator->getLayoutViewType($query['layoutViewType']); | ||
$layoutID = $fileLayoutView->getLayoutID(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.