Commit efd0304d by Phạm Văn Đoan

fix lỗi tuần khi qua năm mới

parent f40ebadf
......@@ -2,16 +2,11 @@
class Report_views_weekly_model extends CI_Model
{
protected $_table = 'report_views_weekly';
protected $_table_new = 'report_views_weekly_new';
protected $_table = 'report_views_weekly_new';
public function __construct(){
parent::__construct();
date_default_timezone_set("Asia/Ho_Chi_Minh");
if (date('W') > 13) {
$this->_table = $this->_table_new;
}
date_default_timezone_set("Asia/Ho_Chi_Minh");
}
public function cmsCountAll($name = null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment