Ticket #3356: search-people.diff
File search-people.diff, 2.4 KB (added by , 17 years ago) |
---|
-
mythweb/modules/tv/search.php
231 231 case 'category': 232 232 $query .= 'program.category'; 233 233 break; 234 case 'people': 235 $query .= 'people.name'; 236 break; 234 237 case 'channum': 235 238 $query .= 'channel.channum'; 236 239 break; … … 294 297 $query[] = "program.description $compare $search"; 295 298 if (empty($_REQUEST['field']) || stristr($_REQUEST['field'], 'cat')) 296 299 $query[] = "program.category $compare $search"; 300 if (empty($_REQUEST['field']) || stristr($_REQUEST['field'], 'people')) 301 $query[] = "people.name $compare $search"; 297 302 $query = implode(' OR ', $query); 298 303 } 299 304 … … 417 422 'subtitle' => html_entities(t('Subtitle')), 418 423 'description' => html_entities(t('Description')), 419 424 'category' => html_entities(t('Category')), 425 'people' => html_entities(t('People')), 420 426 'channum' => html_entities(t('Chan. Number')), 421 427 'channame' => html_entities(t('Chan. Name')), 422 428 'callsign' => html_entities(t('Chan. Callsign')), -
mythweb/modules/tv/includes/programs.php
135 135 FROM program 136 136 LEFT JOIN programrating USING (chanid, starttime) 137 137 LEFT JOIN channel ON program.chanid = channel.chanid 138 LEFT JOIN credits ON (program.chanid = credits.chanid AND program.starttime = credits.starttime) 139 LEFT JOIN people ON (credits.person = people.person) 138 140 WHERE'; 139 141 // Only loading a single channel worth of information 140 142 if ($chanid > 0)