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

Commit

Permalink
Fix minisite error when public url differs from default, by passing o…
Browse files Browse the repository at this point in the history
…riginal data or trying to use the SERVER_URL parameter.
  • Loading branch information
cdujeu committed Mar 30, 2016
1 parent 045b95d commit 7446b98
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -1132,7 +1132,7 @@ public static function loadShareByHash($hash){
$mess = ConfService::getMessages();
if($shareCenter->getShareStore()->isShareExpired($hash, $data)){
AuthService::disconnect();
self::loadMinisite(array(), $hash, $mess["share_center.165"]);
self::loadMinisite($data, $hash, $mess["share_center.165"]);
return;
}
if(!empty($data) && is_array($data)){
Expand All @@ -1146,7 +1146,12 @@ public static function loadShareByHash($hash){
self::loadPubliclet($data);
}
}else{
self::loadMinisite(array(), $hash, $mess["share_center.166"]);
$setUrl = ConfService::getCoreConf("SERVER_URL");
$data = array();
if (!empty($setUrl)) {
$data["AJXP_APPLICATION_BASE"] = $setUrl;
}
self::loadMinisite($data, $hash, $mess["share_center.166"]);
}

}
Expand Down

0 comments on commit 7446b98

Please sign in to comment.