Dont display sort by author when searching by author (feature request #0000910)
1.1 --- a/system/classes/listfactory.class.php Thu Nov 05 21:33:05 2009 +0000
1.2 +++ b/system/classes/listfactory.class.php Thu Nov 05 21:35:39 2009 +0000
1.3 @@ -665,7 +665,7 @@
1.4 $text = $sort_text . $field['title'];
1.5 $href = '';
1.6 $selected = '';
1.7 -
1.8 +
1.9 if ($this->_style == 'inline' && $show_sort && $field['sort'] != false)
1.10 {
1.11 $direction = $this->_def_sort_arr['direction'];
2.1 --- a/system/classes/search.class.php Thu Nov 05 21:33:05 2009 +0000
2.2 +++ b/system/classes/search.class.php Thu Nov 05 21:35:39 2009 +0000
2.3 @@ -481,12 +481,13 @@
2.4 }
2.5 else if ($style == 'google')
2.6 {
2.7 + $sort_uid = $this->_author == '' ? true : false;
2.8 $obj->setStyle('inline');
2.9 $obj->setField('', LF_ROW_NUMBER, $show_num, false, '<b>%d.</b>');
2.10 $obj->setField($LANG09[16], 'title', true, true, '%s<br' . XHTML . '>');
2.11 $obj->setField('', 'description', true, false, '%s<br' . XHTML . '>');
2.12 $obj->setField('', '_html', true, false, '<span style="color:green;">');
2.13 - $obj->setField($LANG09[18], 'uid', $show_user, true, $LANG01[104].' %s ');
2.14 + $obj->setField($LANG09[18], 'uid', $show_user, $sort_uid, $LANG01[104].' %s ');
2.15 $obj->setField($LANG09[17], 'date', true, true, $LANG01[36].' %s');
2.16 $obj->setField($LANG09[5], LF_SOURCE_TITLE,$show_type, true, ' - %s');
2.17 $obj->setField($LANG09[50], 'hits', $show_hits, true, ' - %s '.$LANG09[50]);