Navigation Menu

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

Commit

Permalink
Revert previous calls to ob_flush (@c12simple), this breaks output ca…
Browse files Browse the repository at this point in the history
…pturing for postProcessing (typically shorten)
  • Loading branch information
cdujeu committed Sep 10, 2014
1 parent 4259790 commit ee2b0ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -224,7 +224,6 @@ public function switchAction($action, $httpVars, $fileVars)
$numResult = $result;
}
print($numResult);
ob_flush();
} else if ($subAction == "create_minisite") {
header("Content-type:text/plain");
if(isSet($httpVars["hash"]) && !empty($httpVars["hash"])) $httpHash = $httpVars["hash"];
Expand All @@ -239,7 +238,6 @@ public function switchAction($action, $httpVars, $fileVars)
}
}
print($url);
ob_flush();
} else {
$data = $this->accessDriver->makePublicletOptions($file, $httpVars["password"], $httpVars["expiration"], $httpVars["downloadlimit"], $this->repository);
$customData = array();
Expand All @@ -260,14 +258,14 @@ public function switchAction($action, $httpVars, $fileVars)
header("Content-type:text/plain");
echo $url;
}
ob_flush();
flush();
}
if ($newMeta != null && $ajxpNode->hasMetaStore() && !$ajxpNode->isRoot()) {
$this->addShareInMeta($ajxpNode, $newMeta["type"], $newMeta["id"], $originalHash);
}
AJXP_Controller::applyHook("msg.instant", array("<reload_shared_elements/>", ConfService::getRepository()->getId()));
// as the result can be quite small (e.g error code), make sure it's output in case of OB active.
ob_flush();
flush();

break;

Expand Down

0 comments on commit ee2b0ca

Please sign in to comment.