Пример #1
0
 public static function hasPurchasedDiskSpace()
 {
     if (self::$hasPurchasedDiskSpace !== null) {
         return self::$hasPurchasedDiskSpace;
     }
     if (!(ModuleManager::isModuleInstalled('bitrix24') && Loader::includeModule('bitrix24')) && method_exists('CBitrix24', 'IsExtraDiskSpace')) {
         return self::$hasPurchasedDiskSpace = false;
     }
     return self::$hasPurchasedDiskSpace = \CBitrix24::IsExtraDiskSpace();
 }