Ignore:
Timestamp:
Aug 23, 2009, 6:14:01 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Znovu zprovozněny třídy HomePage, Server a User.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Base/Types/Include.php

    r69 r71  
    4242function ExecuteTypeEvent($TypeName, $Event, $Parameters = array())
    4343{
    44   global $TypeDefinitionList;
     44  global $TypeDefinitionList, $System;
    4545 
    4646  if(array_key_exists($TypeName, $TypeDefinitionList))
     
    4848    $Type = $TypeDefinitionList[$TypeName];
    4949    $TypeClass = 'Type'.$Type['Class'];
    50     $TypeObject = new $TypeClass;
     50    $TypeObject = new $TypeClass($System);
    5151    if(is_callable(array($TypeObject, $Event))) return($TypeObject->$Event($Parameters));
    5252      else return($TypeName.'->'.$Event.'('.serialize($Parameters).')');
Note: See TracChangeset for help on using the changeset viewer.