From f38e92d374e2589016c30e23476a72d015a241df Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Sat, 23 Jan 2010 16:25:24 -0800 Subject: [PATCH] Temporary Fix for ComicPressMediaHandling.inc for comics not being shown. This currently disables the config -> filters I believe. Signed-off-by: Philip M. Hofer (Frumph) --- classes/ComicPressMediaHandling.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/classes/ComicPressMediaHandling.inc b/classes/ComicPressMediaHandling.inc index 76c1307..225246b 100644 --- a/classes/ComicPressMediaHandling.inc +++ b/classes/ComicPressMediaHandling.inc @@ -24,16 +24,15 @@ class ComicPressMediaHandling { function _get_filter($filter_to_use = null) { global $comic_filename_filters; - if (!is_null($filter_to_use)) { if (is_string($filter_to_use)) { if (isset($comic_filename_filters[$filter_to_use])) { return $this->_convert_to_percent_filter($comic_filename_filters[$filter_to_use]); } $options = get_option('comicpress_options'); - if (isset($options['comic_filename_filters'][$filter_to_use])) { - return $this->_convert_to_percent_filter($options['comic_filename_filters'][$filter_to_use]); - } +// if (isset($options['comic_filename_filters'][$filter_to_use])) { +// return $this->_convert_to_percent_filter($options['comic_filename_filters'][$filter_to_use]); +// } } } @@ -43,7 +42,6 @@ class ComicPressMediaHandling { } else { $filter = str_replace('{date}', $this->default_filename_filter, $filter); } - return $filter; }