[geeklog-cvs] geeklog: Made $use_innodb a global variable (sigh) so that a fre...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Aug 30 13:14:52 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d286e7c8b31d
changeset: 7269:d286e7c8b31d
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Aug 29 19:57:10 2009 +0200
description:
Made $use_innodb a global variable (sigh) so that a fresh install with InnoDB tables actually creates InnoDB tables ...

diffstat:

 public_html/admin/install/index.php       |  11 ++++++-----
 public_html/admin/install/lib-upgrade.php |   2 +-
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r 0fd7ed627303 -r d286e7c8b31d public_html/admin/install/index.php
--- a/public_html/admin/install/index.php	Sat Aug 29 19:35:18 2009 +0200
+++ b/public_html/admin/install/index.php	Sat Aug 29 19:57:10 2009 +0200
@@ -47,7 +47,7 @@
  */
 function INST_installEngine($install_type, $install_step)
 {
-    global $_CONF, $_TABLES, $LANG_INSTALL, $LANG_CHARSET, $_DB, $_DB_dbms, $_DB_table_prefix, $_URL, $gl_path, $html_path, $dbconfig_path, $siteconfig_path, $display, $language, $form_label_dir;
+    global $_CONF, $_TABLES, $LANG_INSTALL, $LANG_CHARSET, $_DB, $_DB_dbms, $_DB_table_prefix, $_URL, $gl_path, $html_path, $dbconfig_path, $siteconfig_path, $display, $language, $form_label_dir, $use_innodb;
 
     switch ($install_step) {
 
@@ -446,7 +446,7 @@
 
                 } else {
 
-                    if (INST_createDatabaseStructures($use_innodb)) {
+                    if (INST_createDatabaseStructures()) {
                         $site_name      = isset($_POST['site_name']) ? $_POST['site_name'] : (isset($_GET['site_name']) ? $_GET['site_name'] : '') ;
                         $site_slogan    = isset($_POST['site_slogan']) ? $_POST['site_slogan'] : (isset($_GET['site_slogan']) ? $_GET['site_slogan'] : '') ;
                         $site_url       = isset($_POST['site_url']) ? $_POST['site_url'] : (isset($_GET['site_url']) ? $_GET['site_url'] : '') ;
@@ -729,13 +729,13 @@
 /**
  * Sets up the database tables
  *
- * @param   boolean $use_innodb     Whether to use InnoDB table support if using MySQL
  * @return  boolean                 True if successful
  *
  */
-function INST_createDatabaseStructures ($use_innodb = false)
+function INST_createDatabaseStructures()
 {
-    global $_CONF, $_TABLES, $_DB, $_DB_dbms, $_DB_host, $_DB_user, $_DB_pass, $site_url;
+    global $_CONF, $_TABLES, $_DB, $_DB_dbms, $_DB_host, $_DB_user, $_DB_pass,
+           $site_url, $use_innodb;
 
     $_DB->setDisplayError (true);
 
@@ -884,6 +884,7 @@
 $dbconfig_path      = INST_sanitizePath($dbconfig_path);
 $step               = isset($_GET['step']) ? $_GET['step'] : (isset($_POST['step']) ? $_POST['step'] : 1);
 $mode               = isset($_GET['mode']) ? $_GET['mode'] : (isset($_POST['mode']) ? $_POST['mode'] : '');
+$use_innodb = false;
 
 // $display holds all the outputted HTML and content
 if (defined('XHTML')) {
diff -r 0fd7ed627303 -r d286e7c8b31d public_html/admin/install/lib-upgrade.php
--- a/public_html/admin/install/lib-upgrade.php	Sat Aug 29 19:35:18 2009 +0200
+++ b/public_html/admin/install/lib-upgrade.php	Sat Aug 29 19:57:10 2009 +0200
@@ -711,7 +711,7 @@
  */
 function INST_updateDB($_SQL)
 {
-    global $progress, $_DB, $_DB_dbms;
+    global $progress, $use_innodb, $_DB, $_DB_dbms;
 
     $_SQL = INST_checkInnodbUpgrade($_SQL);
     foreach ($_SQL as $sql) {



More information about the geeklog-cvs mailing list