function getPersonOut($sp_mode = 'speech_by') { if ($this->params['person'] != '') { $person_name = $this->params['person']; } else { return "error: no person provided"; } $ms = new MV_SpecialMediaSearch(); $_REQUEST['limit'] = $this->params['num_results']; // set limit by global: global $mvMediaSearchResultsLimit; $pgsl = $mvMediaSearchResultsLimit; $mvMediaSearchResultsLimit = $this->params['num_results']; $ms->filters[] = array('a' => 'and', 't' => $sp_mode, 'v' => $person_name); $ms->doSearch($log_search = false); $mvMediaSearchResultsLimit = $pgsl; return $ms->getUnifiedResultsHTML($show_sidebar = false); }