Commit 3894f24f authored by Kjartan's avatar Kjartan
Browse files

locale.module

- Made the module search a little less picky so it also shows admin strings.
parent 5dbdef7c
......@@ -143,7 +143,7 @@ function locale_search() {
if (is_array($edit)) {
if ($edit[language] && $edit[status]) $query[] = check_input($edit[language]) . (check_input($edit[status]) == 1 ? " !=" : " =") ." ''";
if ($edit[module]) $query[] = "location LIKE '%module.php?mod=". check_input($edit[module]) ."%'";
if ($edit[module]) $query[] = "location LIKE '%mod=". check_input($edit[module]) ."%'";
if ($edit[string]) $query[] = "string LIKE '%". check_input($edit[string]) ."%'";
$result = db_query("SELECT * FROM locales". (count($query) ? " WHERE ". @implode(" && ", $query) : ""));
......
......@@ -143,7 +143,7 @@ function locale_search() {
if (is_array($edit)) {
if ($edit[language] && $edit[status]) $query[] = check_input($edit[language]) . (check_input($edit[status]) == 1 ? " !=" : " =") ." ''";
if ($edit[module]) $query[] = "location LIKE '%module.php?mod=". check_input($edit[module]) ."%'";
if ($edit[module]) $query[] = "location LIKE '%mod=". check_input($edit[module]) ."%'";
if ($edit[string]) $query[] = "string LIKE '%". check_input($edit[string]) ."%'";
$result = db_query("SELECT * FROM locales". (count($query) ? " WHERE ". @implode(" && ", $query) : ""));
......
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