aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/languages.class.php10
-rw-r--r--admin/include/themes.class.php13
2 files changed, 12 insertions, 11 deletions
diff --git a/admin/include/languages.class.php b/admin/include/languages.class.php
index 6f3348c87..db9d17b42 100644
--- a/admin/include/languages.class.php
+++ b/admin/include/languages.class.php
@@ -78,11 +78,11 @@ class languages
break;
}
- $query = "
-INSERT INTO ".LANGUAGES_TABLE."
- SET id = '".$language_id."',
- name = '".$this->fs_languages[$language_id]."'
-;";
+ $query = '
+INSERT INTO '.LANGUAGES_TABLE.'
+ (id, name)
+ VALUES(\''.$language_id.'\', \''.$this->fs_languages[$language_id].'\')
+;';
pwg_query($query);
break;
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php
index 41ee5f336..cf81fb54e 100644
--- a/admin/include/themes.class.php
+++ b/admin/include/themes.class.php
@@ -114,12 +114,13 @@ class themes
if (empty($errors))
{
- $query = "
-INSERT INTO ".THEMES_TABLE."
- SET id = '".$theme_id."'
- , version = '".$this->fs_themes[$theme_id]['version']."'
- , name = '".$this->fs_themes[$theme_id]['name']."'
-;";
+ $query = '
+INSERT INTO '.THEMES_TABLE.'
+ (id, version, name)
+ VALUES(\''.$theme_id.'\',
+ \''.$this->fs_themes[$theme_id]['version'].'\',
+ \''.$this->fs_themes[$theme_id]['name'].'\')
+;';
pwg_query($query);
}
break;