Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
qiang.xue committed Nov 12, 2010
1 parent 875abab commit d5cf3f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/commands/markdown/MarkdownHtml2Tex.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function make_link($matches)
{
if(strpos($matches[1], '/doc/api/')===0)
{
$url = 'http://yiiframework.com' . $matches[1];
$url = 'http://www.yiiframework.com' . $matches[1];
return sprintf('\href{%s}{%s}', $this->escape($url), $this->escape($matches[2]));
}
else if (strpos($matches[1], 'http://')===0)
Expand Down
2 changes: 2 additions & 0 deletions build/commands/markdown/MarkdownParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public function formatApiLinks($match)
{
@list($text, $api) = explode('|', $match[1], 2);
$api= $api===null ? $text: $api;
if(strncmp($api,'C',1)!==0 && strncmp($api,'Yii',3)!==0)
return $match[0];
$segs=explode('::',rtrim($api,'()'));
$class=$segs[0];
$anchor=isset($segs[1]) ? '#'.$segs[1] : '';
Expand Down

0 comments on commit d5cf3f3

Please sign in to comment.