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) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2010-01-23 16:25:24 -08:00
parent 367d6f9b41
commit f38e92d374
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}