Commit 0f7732e8 by Carsten Brandt

fixed apidoc link parsing

parent f93054a4
......@@ -39,7 +39,7 @@ class Markdown extends \yii\helpers\Markdown
$content = substr($content, 3, -4);
}
$content = preg_replace_callback('/\[\[([\w\d\\\\\(\):]+)(\|[\w\d ]*)?\]\]/xm', function($matches) use ($context) {
$content = preg_replace_callback('/\[\[([\w\d\\\\\(\):$]+)(\|[^\]]*)?\]\]/xm', function($matches) use ($context) {
$object = $matches[1];
$title = (empty($matches[2]) || $matches[2] == '|') ? null : substr($matches[2], 1);
......
......@@ -49,6 +49,7 @@ $this->beginPage();
'options' => ['class' => 'navbar-nav'],
'items' => $nav,
'view' => $this,
'params' => [],
]);
NavBar::end();
?>
......
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