Site error detected. Details: http://sucuri.net/malware/php-error-fatal-error?v6
Fatal error: Call to a member function get() on a non-object in /home/project/public_html/components/com_sectioncategoryarticlelist/views/sectioncategoryarticlelist/view.html.php on line 28
Can anyone help me to resolve it?
<?php
/**
* @Project SectionCategoryArticleList
* @author Mathias Hortig
* @package SectionCategoryArticleList
* @copyright Copyright (C) 2011-2012 tuts4you.de . All rights reserved.
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.component.view');
class SectionCategoryArticleListViewSectionCategoryArticleList extends JViewLegacy
{
function display($tpl = null)
{
$document = &JFactory::getDocument();
$document->addStyleSheet(JURI::root(true).'/components/com_sectioncategoryarticlelist/css/sectioncategoryarticlelist.css');
$document->addScript(JURI::root(true).'/components/com_sectioncategoryarticlelist/js/sectioncategoryarticlelisttoggle.js');
$model = &$this->getModel();
$menu = JSite::getMenu()->getActive();
$params = $menu->params;
$this->assignRef( 'HTML', $model->GetCategories($params->get('linkcategories',1), $params->get('usetoggle',0), $params->get('defaulttoggle',0)));
$this->assignRef( 'pretext', $params->get('pretext'));
$this->assignRef( 'posttext', $params->get('posttext'));
$this->assignRef( 'headline', $params->get('headline'));
parent::display($tpl);
}
}