mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 17:39:46 +01:00
Clean <b> tags from lan files.
This commit is contained in:
parent
632d9b11c2
commit
7c0cc8f37c
@ -1901,7 +1901,7 @@ class lancheck
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clean-up out definitions in a language file.
|
* Clean-up definitions in a language file removed closing php tags and strip specific html..
|
||||||
* @param array $defKeys array of constants to comment out.
|
* @param array $defKeys array of constants to comment out.
|
||||||
* @param string $path path to the language file to edit.
|
* @param string $path path to the language file to edit.
|
||||||
*/
|
*/
|
||||||
@ -1916,7 +1916,14 @@ class lancheck
|
|||||||
$lines = explode("\n",$content);
|
$lines = explode("\n",$content);
|
||||||
|
|
||||||
$srch = array();
|
$srch = array();
|
||||||
$repl =array();
|
$repl = array();
|
||||||
|
|
||||||
|
$srch[] = '<b>';
|
||||||
|
$srch[] = '</b>';
|
||||||
|
|
||||||
|
$repl[] = '[b]';
|
||||||
|
$repl[] = '[/b]';
|
||||||
|
|
||||||
|
|
||||||
if(!empty($defKeys))
|
if(!empty($defKeys))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user