1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 12:51:52 +02:00

Fixed #3807 - Menu-Manager parser error on themes with hyphen in folder name.

This commit is contained in:
Cameron
2019-05-17 12:53:46 -07:00
parent 2fb44903ab
commit 5e0ddfc36f
2 changed files with 6 additions and 1 deletions

View File

@@ -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);