Adding the variable name in the search criteria (platform search)

skala
Julio Montoya 14 years ago
parent 1ba14f8c2f
commit 02fd92c964
  1. 10
      main/admin/settings.lib.php

@ -1385,10 +1385,16 @@ function search_setting($search) {
$comment = api_strtolower(get_lang($setting['comment']));
//Try the comment
if (strpos($comment, $search) === false) {
continue;
//Try the variable name
if (strpos($setting['variable'], $search) === false) {
continue;
} else {
$found = true;
}
} else {
$found = true;
}
}
} else {
$found = true;
}

Loading…
Cancel
Save