mirror of
https://github.com/ivuorinen/xkcd-Mailer.git
synced 2026-03-19 15:05:41 +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__);
|
$here = dirname(__FILE__);
|
||||||
if (! is_readable($here . '/config.php')) {
|
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.)");
|
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";
|
$feed = "http://xkcd.com/atom.xml";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user