mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user