Show
Ignore:
Timestamp:
06/19/08 05:52:32 (18 months ago)
Author:
takayama
Message:

Fixed BugId:80147
* The archive type without a mapping was disabled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/php/lib/block.mtifarchivetypeenabled.php

    r1174 r2606  
    1515        $blog_at = ',' . $blog['blog_archive_type'] . ','; 
    1616        $enabled = preg_match("/,$at,/", $blog_at); 
     17        $map = $ctx->mt->db->fetch_templatemap( 
     18            array('type' => $at, 'blog_id' => $blog['blog_id'])); 
     19        if (empty($map)) 
     20            $enabled = 0; 
    1721        return $ctx->_hdlr_if($args, $content, $ctx, $repeat, $enabled); 
    1822    } else {