another domain link version
This commit is contained in:
parent
5a93fd7863
commit
919c890252
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( "/".$this->page->base.$this->page->location."@domain/i", "", $text );
|
||||
return $text;
|
||||
}
|
||||
|
||||
// Return unique id attribute
|
||||
|
|
Loading…
Add table
Reference in a new issue