Changeset 2968

Show
Ignore:
Timestamp:
09/30/08 17:17:55 (3 months ago)
Author:
david
Message:

FIxed #867: Per-module config_handlers.xml will cause "unsupported operand types" fatal error with debug mode off

Location:
branches/1.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/CHANGELOG

    r2947 r2968  
    55------------------------------- 
    66 
     7FIX: Per-module config_handlers.xml will cause "unsupported operand types" fatal error with debug mode off (#867) (David) 
    78FIX: AgaviXmlConfigDomElement::hasChild() does not pass on $namespaceUri argument (#865) (David) 
    89 
  • branches/1.0/src/config/AgaviConfigCache.class.php

    r2885 r2968  
    349349   
    350350  /** 
    351    * add the config handlers from the given config file 
     351   * Add the config handlers from the given config file. 
     352   * Existing handlers will not be overwritten. 
    352353   *  
    353    * existing handlers will not be overwritten 
    354    *  
    355    * @param      string the path to the config_handlers.xml 
     354   * @param      string The path to a config_handlers.xml file. 
    356355   *  
    357356   * @author     Felix Gilcher <felix.gilcher@bitextender.com> 
    358357   * @since      1.0.0 
    359    *  
    360358   */ 
    361359  public static function loadConfigHandlersFile($cfg) 
    362360  { 
    363     self::$handlers += include AgaviConfigCache::checkConfig($cfg); 
     361    self::$handlers = (array)self::$handlers + include(AgaviConfigCache::checkConfig($cfg)); 
    364362  } 
    365363