diff --git a/application/models/project.php b/application/models/project.php index 6fe74ab..5b0280e 100644 --- a/application/models/project.php +++ b/application/models/project.php @@ -69,7 +69,7 @@ class Project extends CI_Model { * * @return array The shared projects. */ - private function getShared() { + public function getShared() { $this->load->library('session'); $this->db->select('*')->from('shares')->order_by('lastaccess', 'desc')->where(array('user_id' => $this->session->userdata('user_id'))); $this->db->join('projects', 'projects.id = shares.project_id'); diff --git a/application/views/header.php b/application/views/header.php index 060fbe2..ad1acce 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -106,7 +106,31 @@ + +project->getShared(); + if (count($projects) > 0): +?> + - +project->getPublic(); + if (count($projects) > 0): +?> +