mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Fixed #3807 - Menu-Manager parser error on themes with hyphen in folder name.
This commit is contained in:
@@ -5197,6 +5197,11 @@ return;
|
||||
return preg_replace('/[^\w]/',"",$text);
|
||||
}
|
||||
|
||||
if($type === 'wd') // words and digits only.
|
||||
{
|
||||
return preg_replace('/[^\w\d]/',"",$text);
|
||||
}
|
||||
|
||||
if($type === 'wds') // words, digits and spaces only.
|
||||
{
|
||||
return preg_replace('/[^\w\d ]/',"",$text);
|
||||
|
@@ -2002,7 +2002,7 @@ class e_menu_layout
|
||||
|
||||
$themeFileContent = preg_replace('/\(\s?THEME\s?\./', '( e_THEME. "'.$theme.'/" .', str_replace($srch, '', $themeFileContent));
|
||||
|
||||
$themeFileContent = str_replace('tablestyle', $theme."_tablestyle",$themeFileContent); // rename function to avoid conflicts while parsing.
|
||||
$themeFileContent = str_replace('tablestyle', $tp->filter($theme, 'wd')."_tablestyle",$themeFileContent); // rename function to avoid conflicts while parsing.
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user