1
0

throw exeption instead of die()

This commit is contained in:
Ian
2011-12-01 15:53:10 +01:00
parent 2cc2b70f40
commit 7e0cdf30af

View File

@@ -122,9 +122,9 @@ class Serendipity_Smarty extends Smarty
$this->setConfigDir(array(S9Y_TEMPLATE_DEFAULT));
// ToDo: better throw exception depending on context or 500/503 header here
if (!is_dir($this->getCompileDir()) || !is_writable($this->getCompileDir())) {
die(printf(DIRECTORY_WRITE_ERROR, $this->getCompileDir()));
// howto: better throw exception depending on context or 500/503 header here ??
throw new Exception(printf(DIRECTORY_WRITE_ERROR.'<br />', $this->getCompileDir()));
}
#cache# $this->setCacheDir($serendipity['serendipityPath'] . 'cache'); // (enable #cache# properties)