Permalink
Browse files

Deprecating Cookie::del() Unifying to 'delete' method.

  • Loading branch information...
1 parent 5e8eb83 commit bd3178b9fce38c89ad162865ed17fd10f7be0790 @markstory markstory committed Aug 27, 2009
Showing with 8 additions and 1 deletion.
  1. +8 −1 cake/libs/controller/components/cookie.php
@@ -276,6 +276,13 @@ function read($key = null) {
}
}
+/**
+ * @deprecated use delete()
+ **/
+ function del($key) {
+ return $this->delete($key);
+ }
+
/**
* Delete a cookie value
*
@@ -289,7 +296,7 @@ function read($key = null) {
* @return void
* @access public
*/
- function del($key) {
+ function delete($key) {
if (empty($this->__values)) {
$this->read();
}

0 comments on commit bd3178b

Please sign in to comment.