From ba3c401231e2ea4a31a48f44efe5a0892888af01 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 7 Jan 2010 06:58:25 -0800 Subject: [PATCH] Added check for the mediafile.png in the child theme Signed-off-by: Philip M. Hofer (Frumph) --- functions/displaycomic.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions/displaycomic.php b/functions/displaycomic.php index e472919..a3fc3af 100644 --- a/functions/displaycomic.php +++ b/functions/displaycomic.php @@ -31,7 +31,12 @@ function comicpress_display_comic_image($searchorder = "comic", $use_post_image if (!isset($comic_image)) { $comic = explode(".", the_comic_filename()); if (strtolower($comic[1]) == 'swf') { - $comic_image = "\"{$title_to_use}\""; + if (file_exists(get_stylesheet_directory().'/images/mediafile.png')) { + $directory_to_use = get_stylesheet_directory_uri(); + } else { + $directory_to_use = get_template_directory_uri(); + } + $comic_image = "\"{$title_to_use}\""; } } if (!isset($comic_image)) {