diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-09 19:54:43 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-09 19:54:43 -0500 |
commit | 0cd31abbc4e520d93bc4a0f5480dc898bbe5f25b (patch) | |
tree | fc4a8d98cc8154d8cf899e76aa78b5abf9d9a1e9 /app/Model | |
parent | 3de00af08850914a482db250346282aef7ace61f (diff) |
Change API::getProjectByName() to reflect the documentation
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Project.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php index c657e823..c4ec232a 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -52,12 +52,12 @@ class Project extends Base * Get a project by the name * * @access public - * @param string $project_name Project name + * @param string $name Project name * @return array */ - public function getByName($project_name) + public function getByName($name) { - return $this->db->table(self::TABLE)->eq('name', $project_name)->findOne(); + return $this->db->table(self::TABLE)->eq('name', $name)->findOne(); } /** |