function get_adjacent_article($current,$adjacent) { if ($adjacent == 'previous') { $this->db->select_max('ordering'); $this->db->where('ordering <', $current['ordering']); } else { $this->db->select_min('ordering'); $this->db->where('ordering >', $current['ordering']); } $this->db->select('name'); $this->db->where('id_page', $current['id_page']); // The publish filter if ( $this->publish_filter === true ) $this->filter_on_published(); $query = $this->db->get($this->table); if ($query->num_rows() > 0) { return $query->row_array(); } return $false; }
Fatal error: Call to private method Base_model::filter_on_published() from context 'Article_model' in C:\Pev\Data\Web\ionize-dev\application\models\article_model.php on line 531