Changeset 183

Show
Ignore:
Timestamp:
01/29/07 02:41:27 (13 years ago)
Author:
exi
Message:

Fixed missing t2 icon for items without a II but with the proper techlevel in the database.
Added sql show to the qcache as cacheable entry.
Fixed db.php to really look for the define.

Location:
dev/common
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.db_cache.php

    r182 r183  
    3939        // only cache selects 
    4040        // we don't use select ... into so there is no problem 
    41         if (strtolower(substr($this->_sql, 0, 6)) != 'select') 
     41        if (strtolower(substr($this->_sql, 0, 6)) != 'select' && strtolower(substr($this->_sql, 0, 4)) != 'show') 
    4242        { 
    4343            // this is no select, update the table 
  • dev/common/class.item.php

    r174 r183  
    4141        } 
    4242 
    43         if (substr($this->getName(), strlen($this->getName()) - 2, 2) == "II" || $this->row_['techlevel'] == 2) 
     43        if (substr($this->getName(), strlen($this->getName()) - 2, 2) == "II" || $this->row_['itm_techlevel'] == 2) 
    4444        { 
    4545            $icon .= IMG_URL.'/items/32_32/t2.gif'; 
  • dev/common/db.php

    r182 r183  
    44require_once('php_compat.php'); 
    55 
    6 if (DB_USE_QCACHE) 
     6if (defined('DB_USE_QCACHE') && DB_USE_QCACHE == true) 
    77{ 
    88    require_once('class.db_cache.php');