mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'wip-MDL-32269-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
cc6c84373a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user