From: Marcel Werk Date: Tue, 14 Apr 2020 12:38:06 +0000 (+0200) Subject: Updated method name X-Git-Tag: 5.2.6~56^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d04d7bd18a910393ebb2000f21babca260fde24;p=GitHub%2FWoltLab%2FWCF.git Updated method name --- 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(); }