summaryrefslogtreecommitdiff
path: root/plugins/owncloud/owncloud.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-10-17 09:54:25 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-10-17 09:54:25 (GMT)
commit2d08c58e56ebe9c0dd8c55679c887714178ed994 (patch)
tree7a4c5210fbfa9cdf5638181539c0b13d1a2a8bed /plugins/owncloud/owncloud.php
parent5be0b06fcbf61dacd493467b57041f808b04f1c7 (diff)
downloadroundcubemail-plugins-kolab-2d08c58e56ebe9c0dd8c55679c887714178ed994.tar.gz
Fix/prepare plugins to use out of Roundcube (where rcmail object doesn't exist)
Diffstat (limited to 'plugins/owncloud/owncloud.php')
-rw-r--r--plugins/owncloud/owncloud.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/owncloud/owncloud.php b/plugins/owncloud/owncloud.php
index 09edcee..f43177a 100644
--- a/plugins/owncloud/owncloud.php
+++ b/plugins/owncloud/owncloud.php
@@ -21,7 +21,7 @@ class owncloud extends rcube_plugin
function init()
{
- $rcmail = rcmail::get_instance();
+ $rcmail = rcube::get_instance();
// requires kolab_auth plugin
if (empty($_SESSION['kolab_uid'])) {
@@ -39,20 +39,20 @@ class owncloud extends rcube_plugin
// add taskbar button
$this->add_button(array(
- 'command' => 'owncloud',
- 'class' => 'button-owncloud',
- 'classsel' => 'button-owncloud button-selected',
- 'innerclass' => 'button-inner',
- 'label' => 'owncloud.owncloud',
+ 'command' => 'owncloud',
+ 'class' => 'button-owncloud',
+ 'classsel' => 'button-owncloud button-selected',
+ 'innerclass' => 'button-inner',
+ 'label' => 'owncloud.owncloud',
), 'taskbar');
- // add style for taskbar button (must be here) and Help UI
+ // add style for taskbar button (must be here) and Help UI
$this->include_stylesheet($this->local_skin_path()."/owncloud.css");
}
function action()
{
- $rcmail = rcmail::get_instance();
+ $rcmail = rcube::get_instance();
$rcmail->output->add_handlers(array('owncloudframe' => array($this, 'frame')));
$rcmail->output->set_pagetitle($this->gettext('owncloud'));
@@ -61,7 +61,7 @@ class owncloud extends rcube_plugin
function frame()
{
- $rcmail = rcmail::get_instance();
+ $rcmail = rcube::get_instance();
$this->load_config();