MDL-32269: undoing changes from MDL-32095 causing fatal error when using wikimedia

This commit is contained in:
Marina Glancy
2012-03-30 09:11:57 +08:00
parent a280078197
commit bde16d799a
+2 -2
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;