浏览代码

Merge pull request #34 from php-engineer/master-common-component

update common component
Mark 12 年之前
父节点
当前提交
eda219bfec
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Controller/Component/CommonComponent.php

+ 1 - 2
Controller/Component/CommonComponent.php

@@ -95,8 +95,7 @@ class CommonComponent extends Component {
 			// The header can be read with JavaScript and a custom Message can be displayed
 			$this->Controller->response->header('X-Ajax-Flashmessage', json_encode($ajaxMessages));
 
-			// AJAX debug off
-			Configure::write('debug', 0);
+			$this->Session->delete('messages');
 		}
 
 		// Custom options