Ignore:
Timestamp:
Mar 29, 2010, 8:16:33 PM (14 years ago)
Author:
nikrou
Message:

Fix some issues with database engines :

  • insert into syntax not correct for posgresql or sqlite
  • add languages table
  • incorrect function for row count (sqlite)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/themes.class.php

    r5446 r5452  
    115115        if (empty($errors))
    116116        {
    117           $query = "
    118 INSERT INTO ".THEMES_TABLE."
    119   SET id = '".$theme_id."'
    120     , version = '".$this->fs_themes[$theme_id]['version']."'
    121     , name = '".$this->fs_themes[$theme_id]['name']."'
    122 ;";
     117          $query = '
     118INSERT INTO '.THEMES_TABLE.'
     119  (id, version, name)
     120  VALUES(\''.$theme_id.'\',
     121         \''.$this->fs_themes[$theme_id]['version'].'\',
     122         \''.$this->fs_themes[$theme_id]['name'].'\')
     123;';
    123124          pwg_query($query);
    124125        }
Note: See TracChangeset for help on using the changeset viewer.