HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/biologia/components/com_jevents/views/default/helpers/defaultsetpagetitle.php
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function DefaultSetPageTitle($view, $ev_title){
	  //get menu item id

	$newparams = JFactory::getApplication('site')->getParams();
	// Because the application sets a default page title,
	// we need to get it from the menu item itself
	$menu = JFactory::getApplication()->getMenu()->getActive();
	if (isset($menu->query["layout"]) && $menu->query["layout"]=="detail")
	{
		$newparams->def('page_heading', $newparams->get('page_title', $menu->title));
	}
	else
	{
		JFactory::getDocument()->SetTitle( $ev_title );
	}
}
?>