303 $lang->load('tpl_' . $template, JPATH_BASE, null, false, true)
304 || $lang->load('tpl_' . $template, JPATH_THEMES . "/$template", null, false, true);
305
306 if (empty($option))
307 {
308 throw new MissingComponentException(\JText::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
309 }
310
311 if (JDEBUG)
312 {
313 \JProfiler::getInstance('Application')->mark('beforeRenderComponent ' . $option);