From 8d04d7bd18a910393ebb2000f21babca260fde24 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 14 Apr 2020 14:38:06 +0200 Subject: [PATCH] Updated method name --- .../lib/data/search/keyword/SearchKeywordAction.class.php | 2 +- wcfsetup/install/files/lib/form/SearchForm.class.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php b/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php index dfb4d332d3..5c13df3a8c 100644 --- a/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php +++ b/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php @@ -60,7 +60,7 @@ class SearchKeywordAction extends AbstractDatabaseObjectAction implements ISearc /** * Inserts a new keyword if it does not already exist, or updates it if it does. */ - public function upsert() { + public function registerSearch() { $sql = "INSERT INTO wcf".WCF_N."_search_keyword (keyword, searches, lastSearchTime) VALUES (?, ?, ?) diff --git a/wcfsetup/install/files/lib/form/SearchForm.class.php b/wcfsetup/install/files/lib/form/SearchForm.class.php index a9f84e9b65..b54123ac00 100644 --- a/wcfsetup/install/files/lib/form/SearchForm.class.php +++ b/wcfsetup/install/files/lib/form/SearchForm.class.php @@ -11,7 +11,6 @@ use wcf\system\exception\UserInputException; use wcf\system\language\LanguageFactory; use wcf\system\request\LinkHandler; use wcf\system\search\SearchEngine; -use wcf\system\search\SearchKeywordManager; use wcf\system\WCF; use wcf\util\HeaderUtil; use wcf\util\StringUtil; @@ -371,7 +370,7 @@ class SearchForm extends AbstractCaptchaForm { } // save keyword if (!empty($this->query)) { - (new SearchKeywordAction([], 'upsert', ['data' => [ + (new SearchKeywordAction([], 'registerSearch', ['data' => [ 'keyword' => $this->query, ]]))->executeAction(); } -- 2.20.1