if ($sendHeaders) {
HeaderUtil::sendHeaders();
- // call beforeDisplay event
- if (!\defined('NO_IMPORTS')) {
- EventHandler::getInstance()->fireAction($this, 'beforeDisplay');
- }
+ EventHandler::getInstance()->fireAction($this, 'beforeDisplay');
}
$sourceFilename = $this->getSourceFilename($templateName, $application);
include($compiledFilename);
if ($sendHeaders) {
- // call afterDisplay event
- if (!\defined('NO_IMPORTS')) {
- EventHandler::getInstance()->fireAction($this, 'afterDisplay');
- }
+ EventHandler::getInstance()->fireAction($this, 'afterDisplay');
}
}
@\header('Content-Type: text/html; charset=UTF-8');
// send no cache headers
- if (!PACKAGE_ID || !WCF::getSession()->spiderID) {
+ if (!WCF::getSession()->spiderID) {
self::sendNoCacheHeaders();
}
@\header('X-Frame-Options: SAMEORIGIN');
- if (!\defined('NO_IMPORTS')) {
- \ob_start([self::class, 'parseOutput']);
- }
+ \ob_start([self::class, 'parseOutput']);
}
/**