Use the actual project id when requesting it, not the node-path

This commit is contained in:
Karsten Heiken
2011-04-22 13:16:44 +02:00
parent 8532a5d278
commit bdd469be32
2 changed files with 3 additions and 14 deletions

View File

@@ -64,7 +64,7 @@ class Projects extends CI_Controller {
// ->set_output(json_encode(array('count' => $count, 'projects' => $projects)));
}
public function detail($projects, $area, $id) {
public function detail($project_id) {
$project = $this->project->get($id);
$this->output
->set_content_type('application/json')