Changeset 310 for branches/1.1dev/config
- Timestamp:
- Jan 31, 2008 9:54:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/config/boot.inc.php
r183 r310 92 92 die; 93 93 } 94 94 95 95 /** 96 96 * A wrapper for mysql_query. Allows us to set the database link_identifier, … … 126 126 return $qid; 127 127 } 128 129 $mysql_character_sets = array( 130 'utf-8' => 'utf8', 131 'iso-8859-1' => 'latin1', 132 ); 133 134 // Tell MySQL what character set we're useing. Available only on MySQL verions > 4.01.01. 135 if ('' != $CFG->character_set && isset($mysql_character_sets[strtolower($CFG->character_set)])) { 136 dbQuery("/*!40101 SET NAMES '" . $mysql_character_sets[strtolower($CFG->character_set)] . "' */"); 137 } else { 138 logMsg(sprintf('%s is not a known character_set.', $CFG->character_set), LOG_ERR, __FILE__, __LINE__); 139 } 128 140 129 141 } // End enable MySQL._________________________________________________________
Note: See TracChangeset
for help on using the changeset viewer.