<?php
namespace wcf\system\exception;
use wcf\system\WCF;
+use wcf\util\FileUtil;
use wcf\util\StringUtil;
/**
</head>
<body>
<div class="systemException">
- <h1>Fatal error: <?php echo StringUtil::encodeHTML($this->_getMessage()); ?></h1>
+ <h1>Fatal error: <?php if(!$this->getExceptionID()) { ?>Unable to write log file, please make "<?php echo FileUtil::unifyDirSeparator(WCF_DIR); ?>log/" writable!<?php } else { echo StringUtil::encodeHTML($this->_getMessage()); } ?></h1>
<?php if (WCF::debugModeIsEnabled()) { ?>
<div>
<div>
<h2>Information:</h2>
<p>
- <b>ID:</b> <code><?php echo $this->getExceptionID(); ?></code><br>
- <?php echo $innerMessage; ?>
+ <?php if (!$this->getExceptionID()) { ?>
+ Unable to write log file, please make "<?php echo FileUtil::unifyDirSeparator(WCF_DIR); ?>log/" writable!
+ <?php } else { ?>
+ <b>ID:</b> <code><?php echo $this->getExceptionID(); ?></code><br>
+ <?php echo $innerMessage; ?>
+ <?php } ?>
</p>
</div>
<?php } ?>