From 14bbab896ba1a9cc8b21443953a9a3e382b58559 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 27 Aug 2021 11:37:33 +0200 Subject: [PATCH] Remove the InnoDB check for the search engine from IndexPage --- .../install/files/acp/templates/index.tpl | 4 ---- .../files/lib/acp/page/IndexPage.class.php | 20 ------------------- wcfsetup/install/lang/de.xml | 2 +- wcfsetup/install/lang/en.xml | 2 +- 4 files changed, 2 insertions(+), 26 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/index.tpl b/wcfsetup/install/files/acp/templates/index.tpl index 5fc5ab54bd..fd8b861160 100644 --- a/wcfsetup/install/files/acp/templates/index.tpl +++ b/wcfsetup/install/files/acp/templates/index.tpl @@ -23,10 +23,6 @@

{lang}wcf.acp.index.recaptchaWithoutKey{/lang}

{/if} -{if $nonInnoDbSearch} -

{lang}wcf.acp.index.nonInnoDbSearch{/lang}

-{/if} - {if !VISITOR_USE_TINY_BUILD}

{lang}wcf.acp.index.tinyBuild{/lang}

{/if} diff --git a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php index 29ba79aa5b..f4cca83e44 100755 --- a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php @@ -3,7 +3,6 @@ namespace wcf\acp\page; use wcf\data\devtools\missing\language\item\DevtoolsMissingLanguageItemList; -use wcf\data\object\type\ObjectTypeCache; use wcf\data\user\User; use wcf\page\AbstractPage; use wcf\system\application\ApplicationHandler; @@ -12,7 +11,6 @@ use wcf\system\database\util\PreparedStatementConditionBuilder; use wcf\system\io\RemoteFile; use wcf\system\package\PackageInstallationDispatcher; use wcf\system\request\LinkHandler; -use wcf\system\search\SearchIndexManager; use wcf\system\WCF; /** @@ -114,23 +112,6 @@ class IndexPage extends AbstractPage ); } - $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.searchableObjectType'); - $tableNames = []; - foreach ($objectTypes as $objectType) { - $tableNames[] = SearchIndexManager::getTableName($objectType->objectType); - } - $conditionBuilder = new PreparedStatementConditionBuilder(true); - $conditionBuilder->add('TABLE_NAME IN (?)', [$tableNames]); - $conditionBuilder->add('TABLE_SCHEMA = ?', [WCF::getDB()->getDatabaseName()]); - $conditionBuilder->add('ENGINE <> ?', ['InnoDB']); - - $sql = "SELECT COUNT(*) - FROM INFORMATION_SCHEMA.TABLES - " . $conditionBuilder; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute($conditionBuilder->getParameters()); - $nonInnoDbSearch = $statement->fetchSingleColumn() > 0; - $evaluationExpired = $evaluationPending = []; foreach (ApplicationHandler::getInstance()->getApplications() as $application) { if ($application->isTainted) { @@ -196,7 +177,6 @@ class IndexPage extends AbstractPage WCF::getTPL()->assign([ 'recaptchaWithoutKey' => $recaptchaWithoutKey, 'recaptchaKeyLink' => $recaptchaKeyLink, - 'nonInnoDbSearch' => $nonInnoDbSearch, 'server' => $this->server, 'usersAwaitingApproval' => $usersAwaitingApproval, 'evaluationExpired' => $evaluationExpired, diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index f23f3a9302..fcb25b502d 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -967,7 +967,6 @@ ACHTUNG: Die oben genannten Meldungen sind stark gekürzt. Sie können Details z zu aktivieren.]]>
Für eine weitere Nutzung {if LANGUAGE_USE_INFORMAL_VARIANT}musst du{else}müssen Sie{/if} einen Schlüssel in den Optionen hinterlegen, unterhalb des Eingabefeldes befindet sich eine Anleitung zum Anfordern des Schlüssels.]]>
Liste der fehlenden Texte für weitere Informationen.]]> - Systemüberprüfung.]]> @@ -5566,5 +5565,6 @@ Benachrichtigungen auf {PAGE_TITLE|lang + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index b4b9d86049..290ceaf709 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -945,7 +945,6 @@ ATTENTION: The messages listed above are greatly shortened. You can view details enabling it.]]>
For further use you need to provide a key in your options, please follow the instructions below the input field to obtain a key.]]>
list of missing phrases for more information.]]> - System Check.]]>
@@ -5567,5 +5566,6 @@ your notifications on {PAGE_TITLE|langu + -- 2.20.1