Guest User

Untitled

a guest
Jun 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?
  2. ## /bitrix/components/bitrix/socialnetwork.blog.post.edit/post.ajax.php 51 строка
  3.  
  4. function getBizprocList()
  5. {
  6. $lists = CIBlock::getList(
  7. array("SORT" => "ASC","NAME" => "ASC"),
  8. array("ACTIVE" => "Y","TYPE" => COption::GetOptionString("lists", "livefeed_iblock_type_id"), 'SITE_ID' => $siteId)
  9. );
  10. while($list = $lists->fetch())
  11. {
  12. if(CLists::getLiveFeed($list['ID']))
  13. {
  14. $shortName = substr($list['NAME'], 0, 50);
  15. if($shortName == $list['NAME'])
  16. $listData[$list['ID']] = $list['NAME'];
  17. else
  18. $listData[$list['ID']] = $shortName.'...';
  19. }
  20. }
  21.  
  22. return $listData;
  23. }
Add Comment
Please, Sign In to add comment