mirror of
https://github.com/ivuorinen/xkcd-Mailer.git
synced 2026-01-26 11:14:06 +00:00
No need for the else, script dies if config can't be loaded
This commit is contained in:
@@ -17,9 +17,8 @@
|
||||
$here = dirname(__FILE__);
|
||||
if (! is_readable($here . '/config.php')) {
|
||||
die("Please configure me. I don't know where I should sent the comic. (Config file {$here}/config.php missing.)");
|
||||
} else {
|
||||
include_once($here . '/config.php');
|
||||
}
|
||||
include_once($here . '/config.php');
|
||||
|
||||
$feed = "http://xkcd.com/atom.xml";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user