diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-17 18:50:51 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-17 18:50:51 +0000 |
commit | 33839435ee696e51bcdcb37018161b88fbd5bbed (patch) | |
tree | 775016a67327c9d5f7ed2786620d2a472c3e598e /includes | |
parent | b86bb52620530b3a3ee4b471b47c4edb0c580426 (diff) | |
download | brdo-33839435ee696e51bcdcb37018161b88fbd5bbed.tar.gz brdo-33839435ee696e51bcdcb37018161b88fbd5bbed.tar.bz2 |
#201717 by catch: remove the utf8 update helper which is the remaining of the removed 4.6 to 4.7 updates
Diffstat (limited to 'includes')
-rw-r--r-- | includes/install.inc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/includes/install.inc b/includes/install.inc index 87ae7ff7b..6fd8ec642 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -657,60 +657,6 @@ function st($string, $args = array()) { } /** - * Converts a set of tables to UTF-8 encoding. - * - * This update is designed to be re-usable by contrib modules and is - * used by system_update_169(). - */ -function _system_update_utf8($tables) { - // Are we starting this update for the first time? - if (!isset($_SESSION['update_utf8'])) { - switch ($GLOBALS['db_type']) { - // Only for MySQL 4.1+ - case 'mysqli': - break; - case 'mysql': - if (version_compare(mysql_get_server_info($GLOBALS['active_db']), '4.1.0', '<')) { - return array(); - } - break; - case 'pgsql': - return array(); - } - - // See if database uses UTF-8 already - global $db_url; - $url = parse_url(is_array($db_url) ? $db_url['default'] : $db_url); - $db_name = substr($url['path'], 1); - $result = db_fetch_array(db_query('SHOW CREATE DATABASE `%s`', $db_name)); - if (preg_match('/utf8/i', array_pop($result))) { - return array(); - } - - // Make list of tables to convert - $_SESSION['update_utf8'] = $tables; - // Keep track of total for progress bar - $_SESSION['update_utf8_total'] = count($tables); - } - - // Fetch remaining tables list and convert next table - $list = &$_SESSION['update_utf8']; - - $ret = update_convert_table_utf8(array_shift($list)); - - // Are we done? - if (count($list) == 0) { - unset($_SESSION['update_utf8']); - unset($_SESSION['update_utf8_total']); - return $ret; - } - - // Progress percentage - $ret['#finished'] = 1 - (count($list) / $_SESSION['update_utf8_total']); - return $ret; -} - -/** * Check a profile's requirements. * * @param profile |