PDA

View Full Version : [4.6.2] Error Message with [category]



Michael Theodore
April 22, 2018, 07:45 AM
hello,

if a category already exists an error message is displayed with [category] and not the category name.

Viktor
April 23, 2018, 02:59 AM
Hello Michael,

You are right, exist 2 ways to fix it:

1. Open file: ftp://includes>>utils>>Category.php finc method: addUserCategory

find line:


$errors[] = str_replace('{category}', $name, $GLOBALS['rlLang']->getPhrase('tmp_category_exists', null, false, true));


and replace to:


$errors[] = str_replace('[category]', $name, $GLOBALS['rlLang']->getPhrase('tmp_category_exists', null, false, true));


save and check again.
________________________

2. Go to Admin Panel>>Languages find phrase by key: tmp_category_exists
and change '[category]' to '{category}'
this way will solve the problem also.