Merge branch 'wip-MDL-32269-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Aparup Banerjee 2012-04-03 10:18:19 +08:00
commit cc6c84373a

View File

@ -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;