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

Commit 7446b98

Browse files
committed
Fix minisite error when public url differs from default, by passing original data or trying to use the SERVER_URL parameter.
1 parent 045b95d commit 7446b98

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

core/src/plugins/action.share/class.ShareCenter.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ public static function loadShareByHash($hash){
11321132
$mess = ConfService::getMessages();
11331133
if($shareCenter->getShareStore()->isShareExpired($hash, $data)){
11341134
AuthService::disconnect();
1135-
self::loadMinisite(array(), $hash, $mess["share_center.165"]);
1135+
self::loadMinisite($data, $hash, $mess["share_center.165"]);
11361136
return;
11371137
}
11381138
if(!empty($data) && is_array($data)){
@@ -1146,7 +1146,12 @@ public static function loadShareByHash($hash){
11461146
self::loadPubliclet($data);
11471147
}
11481148
}else{
1149-
self::loadMinisite(array(), $hash, $mess["share_center.166"]);
1149+
$setUrl = ConfService::getCoreConf("SERVER_URL");
1150+
$data = array();
1151+
if (!empty($setUrl)) {
1152+
$data["AJXP_APPLICATION_BASE"] = $setUrl;
1153+
}
1154+
self::loadMinisite($data, $hash, $mess["share_center.166"]);
11501155
}
11511156

11521157
}

0 commit comments

Comments
 (0)