diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-16 11:59:08 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-16 11:59:08 +0000 |
| commit | 388de0eb96b779fabc8677a05d97bf2515411d83 (patch) | |
| tree | 271cad39cd8bcef9f334eda01acdb027063f2fb7 /roundcubemail/program/include/rcube.php | |
| parent | fcd056183c14afad005a26157b76ad4a6dc31ab4 (diff) | |
- Replace some references to rcmail with rcube
git-svn-id: https://svn.roundcube.net/trunk@6092 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube.php')
| -rw-r--r-- | roundcubemail/program/include/rcube.php | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/roundcubemail/program/include/rcube.php b/roundcubemail/program/include/rcube.php index 61cee8dba..97596e703 100644 --- a/roundcubemail/program/include/rcube.php +++ b/roundcubemail/program/include/rcube.php @@ -2,7 +2,7 @@ /* +-----------------------------------------------------------------------+ - | program/include/rcmail.php | + | program/include/rcube.php | | | | This file is part of the Roundcube Webmail client | | Copyright (C) 2008-2012, The Roundcube Dev Team | @@ -36,7 +36,7 @@ class rcube const INIT_WITH_PLUGINS = 2; /** - * Singleton instace of rcmail + * Singleton instace of rcube * * @var rcmail */ @@ -109,7 +109,7 @@ class rcube /** * This implements the 'singleton' design pattern * - * @return rcmail The one and only instance + * @return rcube The one and only instance */ static function get_instance() { @@ -718,7 +718,7 @@ class rcube /*- * Trim PHP's padding and the canary byte; see note in - * rcmail::encrypt() and http://php.net/mcrypt_generic#68082 + * rcube::encrypt() and http://php.net/mcrypt_generic#68082 */ $clear = substr(rtrim($clear, "\0"), 0, -1); @@ -848,15 +848,13 @@ class rcube { $args = func_get_args(); - if (class_exists('rcmail', false)) { + if (class_exists('rcube', false)) { $rcube = self::get_instance(); - if (is_object($rcube->plugins)) { - $plugin = $rcube->plugins->exec_hook('console', array('args' => $args)); - if ($plugin['abort']) { - return; - } - $args = $plugin['args']; + $plugin = $rcube->plugins->exec_hook('console', array('args' => $args)); + if ($plugin['abort']) { + return; } + $args = $plugin['args']; } $msg = array(); |
