Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
currentregionfinderservice.php
1<?php
2
4
7
9{
11 protected static $instance;
12
16 public function getRegion(): ?string
17 {
18 $result = null;
19
20 if (Loader::includeModule('bitrix24'))
21 {
22 $licensePrefix = \CBitrix24::getLicensePrefix();
23 if ($licensePrefix !== false)
24 {
25 $result = (string)$licensePrefix;
26 }
27 }
28 elseif (Loader::includeModule('intranet'))
29 {
30 $result = \CIntranetUtils::getPortalZone();
31 }
32 else
33 {
34 $result = LANGUAGE_ID;
35 }
36
37 return $result;
38 }
39}