Skip to content

Commit

Permalink
fix: move outerHtml function to the HtmlPageCrawler object (#1836)
Browse files Browse the repository at this point in the history
Update the CDS Redirector theme `render_block` filter to
have the function call on the object rather than the string.
  • Loading branch information
patheard authored Jul 18, 2024
1 parent 1af8ed7 commit 55d241d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ function cds_filter_core_buttons($block_content, $block)
$crawler = @new HtmlPage($html);
$link = $crawler->filter('a');
$link->addClass($className);
$links .= $link;
$links .= $link->outerHtml();
}

return $links->outerHtml();
return $links;
} catch (Exception $e) {
//no-op
}
Expand Down

0 comments on commit 55d241d

Please sign in to comment.