Index: trunk/extensions/MetavidWiki/includes/MV_MagicWords.php |
— | — | @@ -62,8 +62,11 @@ |
63 | 63 | return $this->getRecentSpeeches(); |
64 | 64 | break; |
65 | 65 | case 'PERSONSPEECHES': |
66 | | - return $this->getPersonOut(); |
| 66 | + return $this->getPersonOut( 'speech_by'); |
67 | 67 | break; |
| 68 | + case 'PERSONSPOKENBY': |
| 69 | + return $this->getPersonOut( 'spoken_by' ); |
| 70 | + break; |
68 | 71 | case 'VIDEOBILL': |
69 | 72 | return $this->getBillOut(); |
70 | 73 | break; |
— | — | @@ -84,8 +87,8 @@ |
85 | 88 | $ms->filters[] = array ( 'a' => 'and', 't' => 'bill', 'v' => $bill_name ); |
86 | 89 | $ms->doSearch( $log_search = false ); |
87 | 90 | return $ms->getUnifiedResultsHTML( $show_sidebar = false ); |
88 | | - } |
89 | | - function getPersonOut() { |
| 91 | + } |
| 92 | + function getPersonOut( $sp_mode = 'speech_by' ) { |
90 | 93 | if ( $this->params['person'] != '' ) { |
91 | 94 | $person_name = $this->params['person']; |
92 | 95 | } else { |
— | — | @@ -99,7 +102,7 @@ |
100 | 103 | $pgsl = $mvMediaSearchResultsLimit; |
101 | 104 | $mvMediaSearchResultsLimit = $this->params['num_results']; |
102 | 105 | |
103 | | - $ms->filters[] = array ( 'a' => 'and', 't' => 'spoken_by', 'v' => $person_name ); |
| 106 | + $ms->filters[] = array ( 'a' => 'and', 't' => $sp_mode, 'v' => $person_name ); |
104 | 107 | $ms->doSearch( $log_search = false ); |
105 | 108 | |
106 | 109 | $mvMediaSearchResultsLimit = $pgsl; |