Skip to content

Commit

Permalink
Forgot to pass the variables to the anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenJRP authored Dec 9, 2024
1 parent f98a284 commit 47bef00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/OembedService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function parseTags(string $input, array $options = [], array $cacheProps
return '';
}

$output = preg_replace_callback('/\<oembed\s(?:.*?)url="(.*?)"(?:.*?)>(?:.*?)<\/oembed>/i', function($matches) {
$output = preg_replace_callback('/\<oembed\s(?:.*?)url="(.*?)"(?:.*?)>(?:.*?)<\/oembed>/i', function($matches) use ($options, $cacheProps) {
$url = $matches[1];
return $this->render($url, $options, $cacheProps);
}, $input);
Expand Down

0 comments on commit 47bef00

Please sign in to comment.