remove SCORE_STRNORM - everyone supports LOWER now

This commit is contained in:
Shish
2019-12-15 16:07:46 +00:00
parent 7b7febea55
commit d7a2ca9ddc
12 changed files with 22 additions and 26 deletions

View File

@@ -138,7 +138,7 @@ class AdminPage extends Extension
{
global $database;
$database->execute($database->scoreql_to_sql(
"UPDATE tags SET tag=:tag1 WHERE SCORE_STRNORM(tag) = SCORE_STRNORM(:tag2)"
"UPDATE tags SET tag=:tag1 WHERE LOWER(tag) = LOWER(:tag2)"
), ["tag1" => $_POST['tag'], "tag2" => $_POST['tag']]);
log_info("admin", "Fixed the case of ".html_escape($_POST['tag']), "Fixed case");
return true;