Browse Source

estrict fixes

euromark 12 years ago
parent
commit
9aef7913fd

+ 5 - 1
Console/Command/PhpTagShell.php

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

+ 1 - 1
Model/Behavior/RevisionBehavior.php

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