diff options
author | nikrou <nikrou@piwigo.org> | 2010-03-29 18:16:33 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-03-29 18:16:33 +0000 |
commit | a6a3a6e0c271099b6f199c7363eba572fc7b5266 (patch) | |
tree | 25176b040dd1bc2b0ba7e7bbeda5704883c1c798 /admin/include/themes.class.php | |
parent | a37f1fbae1309c44531f36e0109b1f2bfecf2539 (diff) |
Fix some issues with database engines :
- insert into syntax not correct for posgresql or sqlite
- add languages table
- incorrect function for row count (sqlite)
git-svn-id: http://piwigo.org/svn/trunk@5452 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/themes.class.php')
-rw-r--r-- | admin/include/themes.class.php | 13 |
1 files changed, 7 insertions, 6 deletions
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; |