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

Commit

Permalink
Remove check and warning for public download folder.
Browse files Browse the repository at this point in the history
Temporary re-add "port" check on core.mq (options will be modified)
  • Loading branch information
cdujeu committed May 26, 2016
1 parent 65996d7 commit d7ad299
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -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){
Expand Down
1 change: 1 addition & 0 deletions core/src/plugins/core.mq/class.MqManager.php
Expand Up @@ -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;
Expand Down

0 comments on commit d7ad299

Please sign in to comment.