Commit 93a28254 authored by changi67's avatar changi67

[ENH] Only translate if multilingual is activated

parent 1669cc14
......@@ -119,9 +119,11 @@ class CategLib extends ObjectLib
}
$catpath = $this->get_category_path($res["categId"]);
$tepath = array();
foreach ($catpath as $cat) {
$tepath[] = tra($cat['name']);
$tepath = array();
if ($prefs['feature_multilingual'] === "y"){
foreach ($catpath as $cat) {
$tepath[] = tra($cat['name']);
}
}
$categpath = implode("::",$tepath);
$categpathforsort = implode("!!",$tepath) . '!!'; // needed to prevent cat::subcat to be sorted after cat2::subcat
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment