fix for FS#49

This commit is contained in:
John Bintz 2009-06-16 18:59:07 -04:00
parent 8a9bbb09ac
commit 809e041c67

View File

@ -6,7 +6,15 @@ Template Name: Comic Year Archive
<?php get_header() ?> <?php get_header() ?>
<?php $archive_year = $_GET['archive_year']; if (is_null($archive_year)) { $archive_year = date('Y'); } ?> <?php
if (isset($_GET['archive_year'])) {
$archive_year = $_GET['archive_year'];
} else {
$latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),false);
$archive_year = get_post_time('Y', false, $latest_comic, true);
if (empty($archive_year)) $archive_year = date('Y');
}
?>
<style> <style>
.archive-date { .archive-date {