diff --git a/repository/wikimedia/wikimedia.php b/repository/wikimedia/wikimedia.php index 2a032505060..ce186b8f21e 100644 --- a/repository/wikimedia/wikimedia.php +++ b/repository/wikimedia/wikimedia.php @@ -141,11 +141,11 @@ class wikimedia { * @param string $keyword * @return array */ - public function search($search_text, $page = 0) { + public function search_images($keyword, $page = 0) { $files_array = array(); $this->_param['action'] = 'query'; $this->_param['generator'] = 'search'; - $this->_param['gsrsearch'] = $search_text; + $this->_param['gsrsearch'] = $keyword; $this->_param['gsrnamespace'] = WIKIMEDIA_FILE_NS; $this->_param['gsrlimit'] = WIKIMEDIA_THUMBS_PER_PAGE; $this->_param['gsroffset'] = $page * WIKIMEDIA_THUMBS_PER_PAGE;