浏览代码

estrict fixes

euromark 12 年之前
父节点
当前提交
9aef7913fd
共有 3 个文件被更改,包括 7 次插入3 次删除
  1. 5 1
      Console/Command/PhpTagShell.php
  2. 1 1
      Model/Behavior/LogableBehavior.php
  3. 1 1
      Model/Behavior/RevisionBehavior.php

+ 5 - 1
Console/Command/PhpTagShell.php

@@ -20,12 +20,16 @@ class PhpTagShell extends AppShell {
 		'trailing' => array(0, 0)
 		'trailing' => array(0, 0)
 	);
 	);
 
 
+	public function main() {
+		$this->out('Usage: cake Tools.PhpTag run [/path/or/file]');
+	}
+
 	/**
 	/**
 	 * note: uses provided folder (first param)
 	 * note: uses provided folder (first param)
 	 * otherwise complete APP
 	 * otherwise complete APP
 	 * 2011-08-01 ms
 	 * 2011-08-01 ms
 	 */
 	 */
-	public function main() {
+	public function run() {
 		if (isset($this->args[0]) && !empty($this->args[0])) {
 		if (isset($this->args[0]) && !empty($this->args[0])) {
 			$folder = realpath($this->args[0]);
 			$folder = realpath($this->args[0]);
 		} else {
 		} else {

+ 1 - 1
Model/Behavior/LogableBehavior.php

@@ -403,7 +403,7 @@ class LogableBehavior extends ModelBehavior {
 		}
 		}
 	}
 	}
 
 
-	public function afterSave(Model $Model, $created) {
+	public function afterSave(Model $Model, $created, $options = array()) {
 		if (!$this->settings[$Model->alias]['enabled']) {
 		if (!$this->settings[$Model->alias]['enabled']) {
 			return true;
 			return true;
 		}
 		}

+ 1 - 1
Model/Behavior/RevisionBehavior.php

@@ -792,7 +792,7 @@ class RevisionBehavior extends ModelBehavior {
 	 * @param boolean $created
 	 * @param boolean $created
 	 * @return boolean
 	 * @return boolean
 	 */
 	 */
-	public function afterSave(Model $Model, $created) {
+	public function afterSave(Model $Model, $created, $options = array()) {
 		if ($this->settings[$Model->alias]['auto'] === false) {
 		if ($this->settings[$Model->alias]['auto'] === false) {
 			return true;
 			return true;
 		}
 		}