291 $lang->load('tpl_' . $template, JPATH_BASE)
292 || $lang->load('tpl_' . $template, JPATH_THEMES . "/$template");
293 }
294
295 if (empty($option)) {
296 throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
297 }
298
299 if (JDEBUG) {
300 Profiler::getInstance('Application')->mark('beforeRenderComponent ' . $option);
301 }