Fix #1159 Add sort option to spamfilter word list

This commit is contained in:
Kijin Sung 2019-07-27 23:21:35 +09:00
parent 0a9d34c37f
commit 853d6753eb
3 changed files with 13 additions and 6 deletions

View file

@ -62,10 +62,10 @@ class spamfilterModel extends spamfilter
/**
* @brief Return the list of registered Words which were banned
*/
function getDeniedWordList()
function getDeniedWordList($sort_index = 'hit')
{
$args = new stdClass();
$args->sort_index = "hit";
$args->sort_index = $sort_index;
$output = executeQueryArray('spamfilter.getDeniedWordList', $args);
return $output->data ?: array();
}