Skip to content

Commit

Permalink
Allow getting params the same way data() works
Browse files Browse the repository at this point in the history
I could improve this to do the `hash::insert()` to replace `addParams()` as is done in `data()`
  • Loading branch information
dogmatic69 committed May 22, 2014
1 parent 2e4d6eb commit a657e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeRequest.php
Expand Up @@ -875,7 +875,7 @@ public function data($name) {
*/
public function param($name) {
if (!isset($this->params[$name])) {
return false;
return Hash::get($this->params, $name);
}
return $this->params[$name];
}
Expand Down

0 comments on commit a657e41

Please sign in to comment.