From d32d934e2bb342e7bef4474e4ee2cc53ff233f3a Mon Sep 17 00:00:00 2001 From: Ben Isaacs Date: Sun, 28 Feb 2021 14:45:10 +0000 Subject: [PATCH] Fix a number of other small blocker bugs --- dir2cast.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dir2cast.php b/dir2cast.php index 6bf9b07..9e0ec0b 100644 --- a/dir2cast.php +++ b/dir2cast.php @@ -1792,7 +1792,7 @@ public static function defaults() define('MIN_FILE_AGE', 30); // Set up factory settings for Podcast subclasses - Dir_Podcast::$EMPTY_PODCAST_IS_ERROR = !CLI_ONLY; + Dir_Podcast::$EMPTY_PODCAST_IS_ERROR = !defined('CLI_ONLY') || !CLI_ONLY; Dir_Podcast::$RECURSIVE_DIRECTORY_ITERATOR = RECURSIVE_DIRECTORY_ITERATOR; Dir_Podcast::$ITEM_COUNT = ITEM_COUNT; Dir_Podcast::$MIN_FILE_AGE = MIN_FILE_AGE; @@ -1912,7 +1912,7 @@ public function output() $podcast = $this->podcast; if(!defined('OUTPUT_FILE')) { - if(!CLI_ONLY) + if(!defined('CLI_ONLY') || !CLI_ONLY) { $podcast->http_headers(); } @@ -2010,7 +2010,7 @@ function main($args) if(isset($GLOBALS['argv'])) { $args = $argv; } - exit(main($argv)); + exit(main($args)); } /* THE END *********************************************/