Changeset 10 for trunk/lib/DB.inc.php


Ignore:
Timestamp:
Sep 12, 2005 1:02:01 AM (19 years ago)
Author:
scdev
Message:

update module_maker to print module variables instead of writing files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/DB.inc.php

    r9 r10  
    160160        $this->_connected = true;
    161161
    162         // Tell MySQL what character set we're useing.
    163         if (preg_match('/^4\.[1-9].*$|^5.*$/', mysql_get_server_info())) {
    164             $this->query("SET NAMES '" . $this->mysql_character_sets[strtolower(App::getParam('character_set'))] . "'");
    165         }
    166        
     162        // Tell MySQL what character set we're useing. Available only on MySQL verions > 4.01.01.
     163        $this->query("/*!40101 SET NAMES '" . $this->mysql_character_sets[strtolower(App::getParam('character_set'))] . "' */");
     164
    167165        return true;
    168166    }
Note: See TracChangeset for help on using the changeset viewer.