Merge 08cf88d9eb
into 5a93fd7863
This commit is contained in:
commit
b7fb49c338
1 changed files with 3 additions and 2 deletions
|
@ -48,11 +48,12 @@ class YellowMarkdownParser extends MarkdownExtraParser
|
|||
// Transform text
|
||||
function transform($text)
|
||||
{
|
||||
$text = preg_replace("/@domain/i", $this->page->serverScheme."://".$this->page->serverName, $text);
|
||||
$text = preg_replace("/@pageRead/i", $this->page->get("pageRead"), $text);
|
||||
$text = preg_replace("/@pageEdit/i", $this->page->get("pageEdit"), $text);
|
||||
$text = preg_replace("/@pageError/i", $this->page->get("pageError"), $text);
|
||||
return parent::transform($text);
|
||||
$text = parent::transform($text);
|
||||
$text = preg_replace("/".preg_quote( $this->page->base.$this->page->location, "/" )."@domain/i", "", $text);
|
||||
return $text;
|
||||
}
|
||||
|
||||
// Return unique id attribute
|
||||
|
|
Loading…
Add table
Reference in a new issue