post_date); $filter_with_date = str_replace('{date}', $post_date, $filter_to_use); if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) { $comic = reset($results); if ($wpmu_path !== false) { $comic = str_replace($wpmu_path, "files", $comic); } return $comic; } $comic_pathfinding_errors[] = sprintf(__("Unable to find the file in the %s folder that matched the pattern %s. Check your WordPress and ComicPress settings.", 'comicpress'), $folder, $filter_with_date); return false; } } ?>