fix links in code
This commit is contained in:
@@ -178,9 +178,6 @@ class Reader extends PhpObject
|
|||||||
//Enlarge line
|
//Enlarge line
|
||||||
//if(mb_strpos($sLine, $sServName) !== false) $sLiClass .= ' bigline';
|
//if(mb_strpos($sLine, $sServName) !== false) $sLiClass .= ' bigline';
|
||||||
|
|
||||||
//Internal & external Urls
|
|
||||||
$sLine = Toolbox::findReplaceLinks($sLine);
|
|
||||||
|
|
||||||
//Comments (entire line)
|
//Comments (entire line)
|
||||||
$bComment = in_array($sFirstChar, $this->getWords('cComment'));
|
$bComment = in_array($sFirstChar, $this->getWords('cComment'));
|
||||||
$sLine = '<li id="'.($iLineNb+1).'" class="round_right '.$sLiClass.'">'.
|
$sLine = '<li id="'.($iLineNb+1).'" class="round_right '.$sLiClass.'">'.
|
||||||
@@ -193,7 +190,7 @@ class Reader extends PhpObject
|
|||||||
{
|
{
|
||||||
$sKey = '§'.$iLineNb.'§';
|
$sKey = '§'.$iLineNb.'§';
|
||||||
$sPattern = '`'.preg_quote($sKey).'`su';
|
$sPattern = '`'.preg_quote($sKey).'`su';
|
||||||
$asCommentLines[$sPattern] = $sLine;
|
$asCommentLines[$sPattern] = Toolbox::findReplaceLinks($sLine); //links only in comments
|
||||||
$sLine = $sKey;
|
$sLine = $sKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user