system/classes/search.class.php
branchHEAD
changeset 7449 ad0616900bdb
parent 7442 5f5387780b30
child 7456 4ef1c9a5915c
     1.1 --- a/system/classes/search.class.php	Thu Nov 05 21:35:39 2009 +0000
     1.2 +++ b/system/classes/search.class.php	Sat Nov 07 16:20:34 2009 +0000
     1.3 @@ -482,14 +482,16 @@
     1.4          else if ($style == 'google')
     1.5          {
     1.6              $sort_uid = $this->_author == '' ? true : false;
     1.7 +            $sort_date = empty($this->_dateStart) || empty($this->_dateEnd) || $this->_dateStart != $this->_dateEnd ? true : false;
     1.8 +            $sort_type = $this->_type == 'all' ? true : false;
     1.9              $obj->setStyle('inline');
    1.10              $obj->setField('',          LF_ROW_NUMBER,  $show_num,  false, '<b>%d.</b>');
    1.11              $obj->setField($LANG09[16], 'title',        true,       true,  '%s<br' . XHTML . '>');
    1.12              $obj->setField('',          'description',  true,       false, '%s<br' . XHTML . '>');
    1.13              $obj->setField('',          '_html',        true,       false, '<span style="color:green;">');
    1.14              $obj->setField($LANG09[18], 'uid',          $show_user, $sort_uid,  $LANG01[104].' %s ');
    1.15 -            $obj->setField($LANG09[17], 'date',         true,       true,  $LANG01[36].' %s');
    1.16 -            $obj->setField($LANG09[5],  LF_SOURCE_TITLE,$show_type, true,  ' - %s');
    1.17 +            $obj->setField($LANG09[17], 'date',         true,       $sort_date,  $LANG01[36].' %s');
    1.18 +            $obj->setField($LANG09[5],  LF_SOURCE_TITLE,$show_type, $sort_type,  ' - %s');
    1.19              $obj->setField($LANG09[50], 'hits',         $show_hits, true,  ' - %s '.$LANG09[50]);
    1.20              $obj->setField('',          '_html',        true,       false, '</span>');
    1.21              $this->_wordlength = 50;