|
|
|
@ -17,7 +17,7 @@ class Tripadvisor_Review_model extends CI_Model {
|
|
|
|
|
function init() {
|
|
|
|
|
$this->topnum = false;
|
|
|
|
|
$this->where = false;
|
|
|
|
|
$this->orderby = " ORDER BY tr_datetime DESC ";
|
|
|
|
|
$this->orderby = " ORDER BY tr.tr_review_id DESC ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function detail_tr_id($tr_id) {
|
|
|
|
@ -38,7 +38,7 @@ class Tripadvisor_Review_model extends CI_Model {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->topnum = $topnum;
|
|
|
|
|
$this->where = ' AND tr.tr_city =' . $this->INFO->escape($tr_city);
|
|
|
|
|
$this->orderby = " ORDER BY tr.tr_id DESC ";
|
|
|
|
|
$this->orderby = " ORDER BY tr.tr_review_id DESC ";
|
|
|
|
|
return $this->GetList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|