Skip to content

Commit

Permalink
Remove PHP4 code from dynamic call, and change call__ to __call.
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant committed Apr 5, 2010
1 parent b65395c commit e0534a7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cake/libs/model/model.php
Expand Up @@ -491,7 +491,7 @@ function __construct($id = false, $table = null, $ds = null) {
* @param array $params Parameters for the method.
* @return mixed Whatever is returned by called method
*/
protected function call__($method, $params) {
public function __call($method, $params) {
$result = $this->Behaviors->dispatchMethod($this, $method, $params);

if ($result !== array('unhandled')) {
Expand All @@ -500,9 +500,6 @@ protected function call__($method, $params) {
$db =& ConnectionManager::getDataSource($this->useDbConfig);
$return = $db->query($method, $params, $this);

if (!PHP5) {
$this->resetAssociations();
}
return $return;
}

Expand Down

0 comments on commit e0534a7

Please sign in to comment.