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/defaultloadmodules.php
<?php

defined('_JEXEC') or die('Restricted access');

function DefaultLoadModules($view, $position)
{


	$cfg = JEVConfig::getInstance();

	$article = JTable::getInstance('content');
	$article->text = "{loadposition $position}";

	$app = JFactory::getApplication();
	$params = JComponentHelper::getParams("com_content");

	JPluginHelper::importPlugin('content');
	$dispatcher	= JEventDispatcher::getInstance();
	$results = $dispatcher->trigger('onContentPrepare', array('com_content.article', &$article, &$params, 0));

        if ($article->text == "{loadposition $position}"){
		// in case the content plugin is not enabled
		return "";
	}
	else {
		echo $article->text;
	}

}