public function getXSendfileNginx()
{
$xsendfileNginx = array();
foreach ($this->_xsendfileNginx as $location => $root) {
$root = (string) $root;
$location = rtrim((string) $location, '/') . '/';
if (substr($root, -1, 1) != '/' && substr($root, -1, 1) != '\\') {
// root and location paths are concatenated
// @see http://wiki.nginx.org/XSendfile
$root = CKFinder_Connector_Utils_FileSystem::combinePaths(rtrim($root, '/'), $location);
}
$xsendfileNginx[$location] = $root;
}
return $xsendfileNginx;
}