Ignore:
Timestamp:
Apr 16, 2012 7:59:08 AM (14 months ago)
Author:
alec
Message:
  • Replace some references to rcmail with rcube
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube.php

    r6091 r6092  
    33/* 
    44 +-----------------------------------------------------------------------+ 
    5  | program/include/rcmail.php                                            | 
     5 | program/include/rcube.php                                             | 
    66 |                                                                       | 
    77 | This file is part of the Roundcube Webmail client                     | 
     
    3737 
    3838  /** 
    39    * Singleton instace of rcmail 
     39   * Singleton instace of rcube 
    4040   * 
    4141   * @var rcmail 
     
    110110   * This implements the 'singleton' design pattern 
    111111   * 
    112    * @return rcmail The one and only instance 
     112   * @return rcube The one and only instance 
    113113   */ 
    114114  static function get_instance() 
     
    719719    /*- 
    720720     * Trim PHP's padding and the canary byte; see note in 
    721      * rcmail::encrypt() and http://php.net/mcrypt_generic#68082 
     721     * rcube::encrypt() and http://php.net/mcrypt_generic#68082 
    722722     */ 
    723723    $clear = substr(rtrim($clear, "\0"), 0, -1); 
     
    849849        $args = func_get_args(); 
    850850 
    851         if (class_exists('rcmail', false)) { 
     851        if (class_exists('rcube', false)) { 
    852852            $rcube = self::get_instance(); 
    853             if (is_object($rcube->plugins)) { 
    854                 $plugin = $rcube->plugins->exec_hook('console', array('args' => $args)); 
    855                 if ($plugin['abort']) { 
    856                     return; 
    857                 } 
    858                $args = $plugin['args']; 
     853            $plugin = $rcube->plugins->exec_hook('console', array('args' => $args)); 
     854            if ($plugin['abort']) { 
     855                return; 
    859856            } 
     857           $args = $plugin['args']; 
    860858        } 
    861859 
Note: See TracChangeset for help on using the changeset viewer.