Permalink
Browse files

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

…ing wikimedia
  • Loading branch information...
1 parent a280078 commit bde16d799a9f7c2de76e8eff6bb7617683283592 @marinaglancy marinaglancy committed Mar 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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.