147 / 5,000
Translation results
I modified a parameter from index.php and I have the error Call to a member function getType() on null
what should I do to restore the site?
defined('_JEXEC') or die;
//check if t3 plugin is existed
if (!defined('T3')) {
if (JError::$legacy) {
JError::setErrorHandling(E_ERROR, 'die');
JError::raiseError(500, JText::('T3_MISSING_T3_PLUGIN'));
exit;
} else {
throw new Exception(JText::('T3_MISSING_T3_PLUGIN'), 500);
}
}
$t3app = T3::getApp($this);
<script>
// get configured layout
$layout = $t3app->getLayout();
$t3app->loadLayout($layout);
</script>