Browse Source

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

ADmad 12 years ago
parent
commit
d838e7b56f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lib/Cake/Console/Command/UpgradeShell.php

+ 5 - 0
lib/Cake/Console/Command/UpgradeShell.php

@@ -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);
 	}