From 646e721f940ca7d55a1364a2b58247bb7cf28560 Mon Sep 17 00:00:00 2001 From: Mike R T Date: Tue, 22 Jun 2010 10:57:16 -0400 Subject: [PATCH] [#135 state:resolved] this change to MT::WeblogPublisher undoes one of Jays changes, but keeps the spirit of what he was trying to do. It resolves the "import issue" in 135 and resolves the issue from 332 with pages not publishing at all. #332 is about 50% resolved, at least. --- lib/MT/WeblogPublisher.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/MT/WeblogPublisher.pm b/lib/MT/WeblogPublisher.pm index 9d28e8381..67c22bf34 100644 --- a/lib/MT/WeblogPublisher.pm +++ b/lib/MT/WeblogPublisher.pm @@ -194,8 +194,9 @@ sub rebuild { # Skip this archive type if the archive type doesn't # match the kind of entry we've loaded - next unless $archiver; - next if $entry->class||'' ne $archiver->entry_class||''; + next unless ($archiver and $entry and $archiver->entry_class); + next if $entry->class ne $archiver->entry_class; + if ( $archiver->category_based ) { my $cats = $entry->categories; CATEGORY: for my $cat (@$cats) {