mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
fix: remove fediverse prefix to prevent migration error + load routes during podcast import
refactor migration queries to use forge functions
This commit is contained in:
parent
072b3ff61d
commit
7ff1dbe903
63 changed files with 387 additions and 355 deletions
|
|
@ -82,7 +82,7 @@ class ComponentRenderer
|
|||
$matches[name] = tag name
|
||||
$matches[attributes] = array of attribute string (class="foo")
|
||||
*/
|
||||
return preg_replace_callback($pattern, function ($match): string {
|
||||
return preg_replace_callback($pattern, function (array $match): string {
|
||||
$view = $this->locateView($match['name']);
|
||||
$attributes = $this->parseAttributes($match['attributes']);
|
||||
|
||||
|
|
@ -104,7 +104,7 @@ class ComponentRenderer
|
|||
$matches[attributes] = string of tag attributes (class="foo")
|
||||
$matches[slot] = the content inside the tags
|
||||
*/
|
||||
return preg_replace_callback($pattern, function ($match): string {
|
||||
return preg_replace_callback($pattern, function (array $match): string {
|
||||
$view = $this->locateView($match['name']);
|
||||
$attributes = $this->parseAttributes($match['attributes']);
|
||||
$attributes['slot'] = $match['slot'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue