Ignore:
Timestamp:
Jul 30, 2007 7:04:40 AM (6 years ago)
Author:
till
Message:

# func.inc:

  • needed to reference rcmail_search_form to class rc_main

+ rcmail_template:

  • implemented calls so handlers can be static methods from classes
  • so we can OO roundcube completely
  • mail.html
    • removed a linebreak
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-vnext/program/include/rcmail_template.inc

    r651 r655  
    524524                    return call_user_func($this->object_handlers[$object], $attrib); 
    525525                } 
     526                else { 
     527                    // we are calling a class/method 
     528                    if ($this->object_handlers[$object] && is_array($this->object_handlers[$object])) { 
     529                        if (class_exists($this->object_handlers[$object][0])) { 
     530                            return call_user_func($this->object_handlers[$object], $attrib); 
     531                        } 
     532                        rc_main::tfk_debug('Unknown handler: ' . var_export($this->object_handlers[$object], true)); 
     533                    } 
     534                } 
    526535                if ($object=='productname') { 
    527536                    $name = !empty($this->config['product_name']) ? $this->config['product_name'] : 'RoundCube Webmail'; 
Note: See TracChangeset for help on using the changeset viewer.