Minor performance issue

Issue #634 resolved
Frank Joris created an issue

Frontend file: views/event/view.html.php Method: display()

JFactory::getApplication()->enqueueMessage(JText::_('COM_ALLEVENTS_ERROR_EVENT_NOT_FOUND'),

Can be replaced with:

$app->enqueueMessage(JText::_('COM_ALLEVENTS_ERROR_EVENT_NOT_FOUND'),

Reason: $app has been assigned in the first line of the method

Same problem in frontend file: models/event.php Method: populateState()

replace 4x JFactory::getApplication() by $app

Comments (4)

  1. Log in to comment