/** * Converter for the special character conversion string * * Converts the comma seperated string e.g. a=>b,z=>y to an array of key=>value pairs * or if a language character conversion file exists - use it overriding the db settings */ private static function characterConversionSet() { // Check to see if there is a character conversion language file before trying the admin settings $character_conv_filepath = self::$usuPath . 'includes' . DIRECTORY_SEPARATOR . 'character_conversion' . DIRECTORY_SEPARATOR . self::$language . '.php'; if (is_readable($character_conv_filepath)) { include_once $character_conv_filepath; if (isset($char_convert) && is_array($char_convert) && !empty($char_convert)) { return $char_convert; } } if (defined('SEO_URLS_CHAR_CONVERT_SET') && tep_not_null(SEO_URLS_CHAR_CONVERT_SET)) { self::$character_conversion = array(); $comma_separation = explode(',', SEO_URLS_CHAR_CONVERT_SET); foreach ($comma_separation as $index => $value_pairs) { $pairs = @explode('=>', $value_pairs); self::$character_conversion[trim($pairs[0])] = trim($pairs[1]); } return self::$character_conversion; } return self::$character_conversion = false; }