mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 06:03:27 +02:00
Issue #6 URLs should not be inside language files.
This commit is contained in:
@@ -3999,6 +3999,17 @@ class e_parse
|
||||
return str_replace($search, $replace, $lan);
|
||||
}
|
||||
|
||||
|
||||
public function lanLink($lan, $url, $options=[])
|
||||
{
|
||||
$srch =["[", "]"];
|
||||
$repl = ["<a target='_blank' href='" .$url . "'>", "</a>"];
|
||||
|
||||
$text = defset($lan, $lan);
|
||||
|
||||
return str_replace($srch, $repl, $text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an Array of all specific tags found in an HTML document and their attributes.
|
||||
*
|
||||
|
Reference in New Issue
Block a user