Skip to content

Commit

Permalink
Ticket #4847 - Studio: Layout changes. Stage 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Dec 3, 2024
1 parent 67da7b1 commit 4137c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/classes/BxDolTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3326,6 +3326,7 @@ function _getAbsoluteLocation($sType, $sFolder, $sName, $sCheckIn = BX_DOL_TEMPL
$sRoot = BX_DOL_URL_ROOT;
}

$aParts = [];
if(strpos($sName,'|') !== false) {
$aParts = explode('|', $sName);
$sName = $aParts[1];
Expand Down Expand Up @@ -3375,9 +3376,8 @@ function _getAbsoluteLocation($sType, $sFolder, $sName, $sCheckIn = BX_DOL_TEMPL
/**
* try to find from received path
*/
if(!$sResult && @is_file(BX_DIRECTORY_PATH_ROOT . $aParts[0] . DIRECTORY_SEPARATOR . $aParts[1])) {
if(!$sResult && isset($aParts[0], $aParts[1]) && @is_file(BX_DIRECTORY_PATH_ROOT . $aParts[0] . DIRECTORY_SEPARATOR . $aParts[1]))
$sResult = $sRoot . $aParts[0] . $sDivider . $aParts[1];
}

if(isset($sLocationKey))
$this->removeLocation($sLocationKey);
Expand Down

0 comments on commit 4137c46

Please sign in to comment.