Changeset 425339
- Timestamp:
- 08/18/2011 11:50:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xml-google-maps/trunk/xmlgooglemaps_dbfunctions.php
r345501 r425339 7 7 function install() { 8 8 global $wpdb; 9 $charset_collate = ''; 10 if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') ) { 11 if ( ! empty($wpdb->charset) ) 12 $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; 13 if ( ! empty($wpdb->collate) ) 14 $charset_collate .= " COLLATE $wpdb->collate"; 15 } 9 16 10 $charset_collate = '';11 if ( $wpdb->has_cap( 'collation' ) ) {12 if ( ! empty($wpdb->charset) )13 $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";14 if ( ! empty($wpdb->collate) )15 $charset_collate .= " COLLATE $wpdb->collate";16 }17 17 $ret = true; 18 18 if ($ret === true) { $ret = xmlgooglemaps_dbfunctions::update001($charset_collate); }
Note: See TracChangeset
for help on using the changeset viewer.