Commit 0f7732e8 by Carsten Brandt

fixed apidoc link parsing

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