Commit 135f0641 by Qiang Xue

fixed phpdoc command.

fixed Markdown::process() to make it compatible with parent declaration.
parent d6eeab2f
......@@ -43,7 +43,7 @@ class PhpDocController extends Controller
{
$except = [];
if ($root === null) {
$root = dirname(dirname(YII_PATH));
$root = dirname(YII_PATH);
$extensionPath = "$root/extensions";
foreach (scandir($extensionPath) as $extension) {
if (ctype_alpha($extension) && is_dir($extensionPath . '/' . $extension)) {
......
......@@ -32,7 +32,7 @@ class Markdown extends \yii\helpers\Markdown
* @param TypeDoc $context
* @return string
*/
public static function process($content, $context)
public static function process($content, $context = null)
{
$content = trim(parent::process($content, []));
if (!strncmp($content, '<p>', 3) && substr($content, -4, 4) == '</p>') {
......@@ -77,4 +77,4 @@ class Markdown extends \yii\helpers\Markdown
return $content;
}
}
\ No newline at end of file
}
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