Excessive function calls. Performance improvement.

Issue #624 resolved
Frank Joris created an issue

Frontend file: models/eventform.php Function: populateState

Minor performance issue.

$id = JFactory::getApplication()->input->getInt('id'); JFactory::getApplication()->setUserState('com_allevents.edit.event.id', $id);

should be replaced by:

$id = $app->input->getInt('id'); $app->setUserState('com_allevents.edit.event.id', $id);

$app is assigned on the previous line, so there's no need to call the functions again.

Comments (2)

  1. Log in to comment