mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fix for database verify charset function.
This commit is contained in:
parent
184edd3193
commit
5235b4fcaf
@ -162,8 +162,6 @@ class system_tools
|
||||
|
||||
$this->_utf8_exclude = array(MPREFIX."core");
|
||||
|
||||
|
||||
|
||||
$this->_options = array(
|
||||
"db_update" => array('diz'=>DBLAN_15, 'label'=>DBLAN_16),
|
||||
"verify_sql" => array('diz'=>DBLAN_4, 'label'=>DBLAN_5),
|
||||
@ -231,12 +229,13 @@ class system_tools
|
||||
if(isset($_POST['db_update']) || varset($_GET['mode'])=='db_update') // Requires further testing.
|
||||
{
|
||||
// header("location: ".e_ADMIN."e107_update.php");
|
||||
$dbupdate = null;
|
||||
require_once(e_ADMIN."update_routines.php");
|
||||
new e107Update($dbupdate);
|
||||
return;
|
||||
}
|
||||
|
||||
if(isset($_POST['convert_to_utf8']) || $_GET['mode']=='convert_to_utf8')
|
||||
if(isset($_POST['convert_to_utf8']) || $_GET['mode'] =='convert_to_utf8')
|
||||
{
|
||||
$this->convertUTF8Form();
|
||||
}
|
||||
@ -557,7 +556,7 @@ class system_tools
|
||||
define('LANINS_133', "This will create a fresh installation of e107 at the domain you specify. Using your server administration software (e.g. cPanel) - park your other domain on top of [x]");
|
||||
|
||||
|
||||
e107::getMySQLConfig('user'); // prefix|server|user|password|
|
||||
$config = e107::getMySQLConfig(); // prefix|server|user|password|defaultdb
|
||||
|
||||
if(!isset($POST['create_multisite']))
|
||||
{
|
||||
@ -784,7 +783,7 @@ class system_tools
|
||||
{
|
||||
$config = e107::getMySQLConfig();
|
||||
$dbtable = $config['mySQLdefaultdb'];
|
||||
|
||||
|
||||
//TODO Add a check to be sure the database is not already utf-8.
|
||||
// yep, needs more methods - possibly a class in e107_handler
|
||||
|
||||
|
@ -732,7 +732,7 @@ class e107
|
||||
* Example: <code>$e107->getMySQLConfig('prefix');</code>
|
||||
*
|
||||
* @param string $for prefix|server|user|password|defaultdb - leave blank for full array.
|
||||
* @return string or array
|
||||
* @return string|array
|
||||
*/
|
||||
public static function getMySQLConfig($for='')
|
||||
{
|
||||
|
@ -3534,7 +3534,8 @@ class e_form
|
||||
}
|
||||
else
|
||||
{
|
||||
$include = (deftrue("FONTAWESOME")) ? "data-loading-icon='fa-spinner' data-disable='true'" : "";
|
||||
// $include = (deftrue("FONTAWESOME")) ? "data-loading-icon='fa-spinner' data-disable='true'" : "";
|
||||
$include = (deftrue("FONTAWESOME")) ? "data-loading-icon='fa-spinner' " : ""; // data-disable breaks db.php charset Fix.
|
||||
}
|
||||
|
||||
$confirmation = LAN_JSCONFIRM;
|
||||
|
Loading…
x
Reference in New Issue
Block a user