From af3dddae088a27d5b3eba027b97cd035b2d51c4b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 7 Jun 2007 00:23:33 +0000 Subject: [PATCH] problem linking to InnoDB info from Status page; problem showing InnoDB engine info --- libraries/StorageEngine.class.php | 5 +++-- server_status.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libraries/StorageEngine.class.php b/libraries/StorageEngine.class.php index 737423aa6..ce80ae9e9 100644 --- a/libraries/StorageEngine.class.php +++ b/libraries/StorageEngine.class.php @@ -184,8 +184,9 @@ class PMA_StorageEngine function getEngine($engine) { $engine = str_replace('/', '', str_replace('.', '', $engine)); - if (file_exists('./libraries/engines/' . $engine . '.lib.php') - && include_once './libraries/engines/' . $engine . '.lib.php') { + $engine_lowercase_filename = strtolower($engine); + if (file_exists('./libraries/engines/' . $engine_lowercase_filename . '.lib.php') + && include_once './libraries/engines/' . $engine_lowercase_filename . '.lib.php') { $class_name = 'PMA_StorageEngine_' . $engine; $engine_object = new $class_name($engine); } else { diff --git a/server_status.php b/server_status.php index 23f6b65d2..75d9137f3 100644 --- a/server_status.php +++ b/server_status.php @@ -309,9 +309,9 @@ $links['Slow_queries']['MySQL - ' . $strDocu] = $cfg['MySQLManualBase'] . '/slow-query-log.html'; $links['innodb'][$strServerTabVariables] - = 'server_engines.php?engine=innodb&' . PMA_generate_common_url(); + = 'server_engines.php?engine=InnoDB&' . PMA_generate_common_url(); $links['innodb'][$strInnodbStat] - = 'server_engines.php?engine=innodb&page=status&' . + = 'server_engines.php?engine=InnoDB&page=Status&' . PMA_generate_common_url(); $links['innodb']['MySQL - ' . $strDocu] = $cfg['MySQLManualBase'] . '/innodb.html';