Sorry to insist.
in oc-includes/osclass/model/Search.php
there is :
/**
* Return an array with columns allowed for sorting
*
* @return array
*/
public static function getAllowedColumnsForSorting()
{
return array('i_price', 'dt_pub_date', 'dt_expiration');
}
If i change for
/**
* Return an array with columns allowed for sorting
*
* @return array
*/
public static function getAllowedColumnsForSorting()
{
return array('i_price', 'dt_mod_date', 'dt_expiration');
}
I have noticed no change at all
In the same file, If i change :
public function order($o_c = 'dt_pub_date', $o_d = 'DESC', $table = NULL)
{
if($table == '') {
$this->order_column = $o_c;
} else if($table != ''){
if( $table === '%st_user' ) {
$this->order_column = sprintf("ISNULL($table.$o_c), $table.$o_c", DB_TABLE_PREFIX, DB_TABLE_PREFIX);
} else {
$this->order_column = sprintf("$table.$o_c", DB_TABLE_PREFIX);
}
}
$this->order_direction = $o_d;
}
to :
public function order($o_c = 'dt_mod_date', $o_d = 'DESC', $table = NULL)
{
if($table == '') {
$this->order_column = $o_c;
} else if($table != ''){
if( $table === '%st_user' ) {
$this->order_column = sprintf("ISNULL($table.$o_c), $table.$o_c", DB_TABLE_PREFIX, DB_TABLE_PREFIX);
} else {
$this->order_column = sprintf("$table.$o_c", DB_TABLE_PREFIX);
}
}
$this->order_direction = $o_d;
}
It changes only on latest ads on the home page
Other changes that i have tryed in oc-includes/osclass/controller/search.php
(changing dt_pub_date to dt_mod_date) has had no effect.