Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Notification problems with ftp fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasCresson committed Aug 26, 2013
1 parent 0df41be commit b567c18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/access.ftp/class.ftpAccessDriver.php
Expand Up @@ -199,7 +199,7 @@ function uploadActions($action, $httpVars, $filesVars){
return array("ERROR" => array("CODE" => $errorCode, "MESSAGE" => $errorMessage));
}else{
AJXP_Logger::debug("Return success");
return array("SUCCESS" => true);
return array("SUCCESS" => true, "PREVENT_NOTIF" => true);
}

break;
Expand Down
Expand Up @@ -106,8 +106,10 @@ public function postProcess($action, $httpVars, $postProcessData){
}
AJXP_XMLWriter::close();
/* for further implementation */
if(!isset($httpVars["prevent_notification"])){
AJXP_Controller::applyHook("node.change", array(null, $result["CREATED_NODE"], false));
if(!$result["PREVENT_NOTIF"]){
if(isset($result["CREATED_NODE"])){
AJXP_Controller::applyHook("node.change", array(null, $result["CREATED_NODE"], false));
}
}
//exit("OK");
}
Expand Down

0 comments on commit b567c18

Please sign in to comment.