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/mtdb_base.php

    r2589 r2606  
    150150                       $type_filter 
    151151              order by template_name"; 
     152        $result = $this->get_results($sql, ARRAY_A); 
     153        return $result; 
     154    } 
     155 
     156    function fetch_templatemap($args) { 
     157        if (isset($args['type'])) { 
     158            $type_filter = 'and templatemap_archive_type = \'' . $this->escape($args['type']) . '\''; 
     159        } 
     160        if (isset($args['blog_id'])) { 
     161            $blog_filter = 'and templatemap_blog_id = ' . intval($args['blog_id']); 
     162        } 
     163        $sql = "select * 
     164                  from mt_templatemap 
     165                 where 1 = 1 
     166                       $blog_filter 
     167                       $type_filter 
     168              order by templatemap_archive_type"; 
    152169        $result = $this->get_results($sql, ARRAY_A); 
    153170        return $result;