Skip to content

Commit

Permalink
N°3454 - MoveToProd in 2 steps - fix utils::GetCurrentModuleUrl()
Browse files Browse the repository at this point in the history
  • Loading branch information
eespie committed Jul 25, 2023
1 parent bc7c1b4 commit 6f8e7c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/utils.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1978,7 +1978,7 @@ public static function GetCurrentModuleDir($iCallDepth)
*/
public static function GetCurrentModuleUrl()
{
return ModuleService::GetInstance()->GetCurrentModuleUrl();
return ModuleService::GetInstance()->GetCurrentModuleUrl(1);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions sources/Service/Module/ModuleService.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ public function GetCurrentModuleDir(int $iCallDepth): string
*
* @uses GetCurrentModuleDir
*/
public function GetCurrentModuleUrl(): string
public function GetCurrentModuleUrl(int $iCallDepth = 0): string
{
$sDir = $this->GetCurrentModuleDir(1);
$sDir = $this->GetCurrentModuleDir(1 + $iCallDepth);
if ( $sDir !== '')
{
return utils::GetAbsoluteUrlModulesRoot().'/'.$sDir;
Expand Down

0 comments on commit 6f8e7c7

Please sign in to comment.