Skip to content

Commit

Permalink
fix for running in script
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 7, 2011
1 parent 48f6cf4 commit 6eb777c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operators/sitelinkoperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ static function sitelink(&$operatorValue, &$namedParameters){

if($SiteLink->isMultisite){
$HostMatchMapItems=SiteLink::hostMatchMapItems($SiteLink);
//match domain from current siteaccess if no server vars exist, ie if this is run from script
if (!$SiteLink->currentHost && $GLOBALS['eZCurrentAccess']) {
$SiteLink->currentHost = $HostMatchMapItems[$GLOBALS['eZCurrentAccess'][name]];
}
$PathArray = $SiteLink->objectNode->pathArray();
foreach($HostMatchMapItems as $Name=>$Host){
$HostRootNode = SiteLink::configSetting('NodeSettings','RootNode','content.ini',"settings/siteaccess/$Name",true);
Expand Down

0 comments on commit 6eb777c

Please sign in to comment.