public function load($file, $type = null)
{
$code = rtrim(file_get_contents($file));
// Opening tag
if (0 === strncmp($code, '<?php', 5)) {
$code = substr($code, 5);
}
// Access check
$code = str_replace([" if (!defined('TL_ROOT')) die('You cannot access this file directly!');", " if (!defined('TL_ROOT')) die('You can not access this file directly!');"], '', $code);
// Closing tag
if (substr($code, -2) == '?>') {
$code = substr($code, 0, -2);
}
return rtrim($code) . "\n";
}