Plugin Directory

Changeset 425339


Ignore:
Timestamp:
08/18/2011 11:50:10 AM (15 years ago)
Author:
dschuesae
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xml-google-maps/trunk/xmlgooglemaps_dbfunctions.php

    r345501 r425339  
    77    function install() {
    88        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        }
    916       
    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         }
    1717        $ret = true;
    1818        if ($ret === true) { $ret = xmlgooglemaps_dbfunctions::update001($charset_collate); }
Note: See TracChangeset for help on using the changeset viewer.