12
@DobePhat
Many thx for reporting this issue here.
I too upgraded News (excellent module) but hadn't noticed the expired article problem.
News has always considered 'Archive' as a collection of all articles. My definition of archive is a collection of old (expired) articles. This version of News considers archive as a collection of anything BUT expired articles. It's about as logical as a Citroen!
@Skenow
Many thx for the fixes.
I am particularly pleased because, if like me you only want the archive to contain expired articles, you can slightly modify your suggestion for news/class/class.newsstory.php to:
$sql = 'SELECT s.*, t.* FROM '.$db->prefix('stories').' s, ' .$db->prefix('topics').' t WHERE (s.topicid=t.topic_id) AND (s.published > ' . $publish_start . ' AND s.published <= ' . $publish_end . ') AND expired > 0 ';
Search doesn't work for me though. I'm not sure if News ever searched the archive?
A thread is for life. Not just for Christmas.