Commit 224794d4 authored by Administrator's avatar Administrator 💬

feat: tweak page injection

parent 7a9f2c46
Pipeline #10652 canceled with stage
......@@ -109,7 +109,8 @@ class PageInjectPlugin extends Plugin
protected function parseInjectLinks($content, $function)
{
$regex = '/\[plugin:(content-inject|page-inject)\]\(((.*)\?template=(.*)|(.*))\)/i';
$regex = '/\[(content-inject|page-inject)\]\(((.*)\?template=(.*)|(.*))\)/i';
#$regex = '/\[plugin:(content-inject|page-inject)\]\(((.*)\?template=(.*)|(.*))\)/i';
return preg_replace_callback($regex, $function, $content);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment