Updated upgrade shell to change CakeRequest::onlyAllow() usages.

This commit is contained in:
ADmad 2014-02-10 18:14:25 +05:30
parent 1da79080ac
commit d838e7b56f

View file

@ -392,6 +392,11 @@ class UpgradeShell extends AppShell {
'/(\$this->action\b(?!\())/',
'$this->request->action'
),
array(
'$this->request->onlyAllow() -> $this->request->allowMethod()',
'/\$this->request->onlyAllow\(/',
'$this->request->allowMethod('
)
);
$this->_filesRegexpUpdate($patterns);
}