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

Commit

Permalink
Fix Travel path computation, could break minisite on some setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 11, 2013
1 parent c24675b commit 9d39f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -512,7 +512,7 @@ function buildPublicDlURL(){

function computeMinisiteToServerURL(){
$minisite = parse_url($this->buildPublicDlURL(), PHP_URL_PATH) ."/a.php";
$server = parse_url( AJXP_Utils::detectServerURL(), PHP_URL_PATH) . dirname($_SERVER['REQUEST_URI']);
$server = rtrim(parse_url( AJXP_Utils::detectServerURL(true), PHP_URL_PATH), "/");
return AJXP_Utils::getTravelPath($minisite, $server);
}

Expand Down

0 comments on commit 9d39f17

Please sign in to comment.