Skip to content
Permalink
Browse files

Remove check and warning for public download folder.

Temporary re-add "port" check on core.mq (options will be modified)
  • Loading branch information
cdujeu committed May 26, 2016
1 parent 65996d7 commit d7ad299ae56a71876b938ae2ec206eb27595820b
@@ -104,11 +104,6 @@ protected function parseSpecificContributions(&$contribNode)
{
parent::parseSpecificContributions($contribNode);
$disableSharing = false;
$downloadFolder = ConfService::getCoreConf("PUBLIC_DOWNLOAD_FOLDER");
if ( empty($downloadFolder) || (!is_dir($downloadFolder) || !is_writable($downloadFolder))) {
$this->logError("Warning on public links, $downloadFolder is not writeable!", array("folder" => $downloadFolder, "is_dir" => is_dir($downloadFolder),"is_writeable" => is_writable($downloadFolder)));
}

$xpathesToRemove = array();

if( strpos(ConfService::getRepository()->getAccessType(), "ajxp_") === 0){
@@ -192,6 +192,7 @@ public function sendInstantMessage($xmlContent, $repositoryId, $targetUserId = n
}

$host = $this->getFilteredOption("WS_SERVER_HOST");
$port = $this->getFilteredOption("WS_SERVER_PORT");
if(!empty($host) && !empty($port)){
// Publish on NSQ
$nsq = new nsqphp;

0 comments on commit d7ad299

Please sign in to comment.
You can’t perform that action at this time.