mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
Code formatting
This commit is contained in:
@@ -181,6 +181,20 @@ class NavigationMenu extends UIBlock
|
||||
{
|
||||
return $this->sSiloLabel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string The current organization ID of the app. context
|
||||
*/
|
||||
public function GetOrgId(): string
|
||||
{
|
||||
$oAppContext = new ApplicationContext();
|
||||
$sCurrentOrganization = $oAppContext->GetCurrentValue('org_id');
|
||||
|
||||
if(!empty($sCurrentOrganization)) {
|
||||
return $sCurrentOrganization;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
@@ -423,19 +437,4 @@ JS;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string The current organization ID of the app. context
|
||||
*/
|
||||
public function GetOrgId(): string
|
||||
{
|
||||
$oAppContext = new ApplicationContext();
|
||||
$sCurrentOrganization = $oAppContext->GetCurrentValue('org_id');
|
||||
|
||||
if(!empty($sCurrentOrganization)) {
|
||||
return $sCurrentOrganization;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user