From f8e3096b83d2f9af9822941696310e5cb4dd58c4 Mon Sep 17 00:00:00 2001 From: Hmayak Tigranyan Date: Tue, 27 Aug 2013 11:39:43 +0400 Subject: [PATCH] SUP-73 fix --- mod/admin/lib_mt_customization.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/admin/lib_mt_customization.inc b/mod/admin/lib_mt_customization.inc index 2acb12f..26571b4 100644 --- a/mod/admin/lib_mt_customization.inc +++ b/mod/admin/lib_mt_customization.inc @@ -181,6 +181,7 @@ function mt_customization_add_terms($mt_term) { function mt_customization_add_new_taxonomy() { global $global; $term = str_replace(" ", "", strtolower($_POST['term'])); + $term = str_replace("-", "_", $term); $term = preg_replace('/[^A-Za-z0-9\-_]/', '', $term); // Removes special chars. $term = trim($term); if (!$term) { @@ -200,6 +201,7 @@ function mt_customization_add_new_taxonomy() { $dbQuery = new Browse(); try { + $dbQuery->ExecuteNonQuery("insert into mt_index(`no`,`term`) values(" . $code . ",'" . $term . "')"); $sql = "CREATE TABLE IF NOT EXISTS mt_" . $code . "_" . $term . "(