Rename DBA::database_name to DBA::databaseName
This commit is contained in:
parent
abbaaf5aa5
commit
591939dfc0
|
@ -816,7 +816,7 @@ function admin_page_workerqueue(App $a)
|
|||
function admin_page_summary(App $a)
|
||||
{
|
||||
// are there MyISAM tables in the DB? If so, trigger a warning message
|
||||
$r = q("SELECT `engine` FROM `information_schema`.`tables` WHERE `engine` = 'myisam' AND `table_schema` = '%s' LIMIT 1", dbesc(DBA::database_name()));
|
||||
$r = q("SELECT `engine` FROM `information_schema`.`tables` WHERE `engine` = 'myisam' AND `table_schema` = '%s' LIMIT 1", dbesc(DBA::databaseName()));
|
||||
$showwarning = false;
|
||||
$warningtext = [];
|
||||
if (DBM::is_result($r)) {
|
||||
|
|
|
@ -183,7 +183,7 @@ class DBA
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function database_name() {
|
||||
public static function databaseName() {
|
||||
$ret = self::p("SELECT DATABASE() AS `db`");
|
||||
$data = self::inArray($ret);
|
||||
return $data[0]['db'];
|
||||
|
|
|
@ -26,7 +26,7 @@ class DBStructure
|
|||
*/
|
||||
public static function convertToInnoDB() {
|
||||
$r = q("SELECT `TABLE_NAME` FROM `information_schema`.`tables` WHERE `engine` = 'MyISAM' AND `table_schema` = '%s'",
|
||||
dbesc(DBA::database_name()));
|
||||
dbesc(DBA::databaseName()));
|
||||
|
||||
if (!DBM::is_result($r)) {
|
||||
echo L10n::t('There are no tables on MyISAM.')."\n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user