Blame view

bitrix/components/citrus/contests/templates/.default/result_modifier.php 439 Bytes
60c6f0893   root   init
1
2
3
4
5
6
7
8
9
10
  <?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
  if($this->__page != "list" && $arResult['VARIABLES']['CON_CODE'])
  {
  	if(!CModule::IncludeModule("iblock"))
  		return;
  	$res = CIBlockElement::GetList(Array(),Array("CODE" => $arResult['VARIABLES']['CON_CODE']),false,false,Array("ID","NAME","DETAIL_PAGE_URL"));
  	$Con = $res->GetNext();
  	$APPLICATION->AddChainItem($Con['NAME'], $Con['DETAIL_PAGE_URL']."winners/");
  }
  ?>