Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-32269: undoing changes from MDL-32095 causing fatal error when us…

…ing wikimedia
  • Loading branch information...
commit bde16d799a9f7c2de76e8eff6bb7617683283592 1 parent a280078
@marinaglancy marinaglancy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 repository/wikimedia/wikimedia.php
View
4 repository/wikimedia/wikimedia.php
@@ -141,11 +141,11 @@ public function get_thumb_url($image_url, $orig_width, $orig_height, $thumb_widt
* @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;

0 comments on commit bde16d7

Please sign in to comment.
Something went wrong with that request. Please try again.