Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: r52snip
Added: Sep 28, 2018 7:54 AM
Views: 3
  1. В news.list и news.detail добавляем файл component_epilog.php
  2.  
  3. <? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
  4.     if (is_array($arResult["SECTION"]["PATH"]))
  5.        {
  6.         $s = array_pop($arResult["SECTION"]["PATH"]);
  7.         $GLOBALS['APPLICATION']->SetTitle($s["NAME"]);
  8.        }
  9. ?>