// check validity if (str_contains($content, "<pre>")) return "<p style='color: #d40000; font-weight: bold; padding: 1rem 0;'>[Shortcode Gallery++] Error:<br> > Images provided got parsed as code block.<br> > Please check your markdown file and make sure the images aren't indented by tab or more than three spaces.</p>";
Used example code in readme (switching out for my images).
There is no \<pre> anywhere on the page.
Error:
Call to undefined function Grav\Plugin\Shortcodes\str_contains()
References line 45
commit 20de20970645f5fa6adcfa512ac6fd57bebea758 "Improved image parsing"
Below code breaks page
// check validity if (str_contains($content, "<pre>")) return "<p style='color: #d40000; font-weight: bold; padding: 1rem 0;'>[Shortcode Gallery++] Error:<br> > Images provided got parsed as code block.<br> > Please check your markdown file and make sure the images aren't indented by tab or more than three spaces.</p>";
Used example code in readme (switching out for my images). There is no \<pre> anywhere on the page.
Error:
Call to undefined function Grav\Plugin\Shortcodes\str_contains()
References line 45Removing the check validity makes it work fine.