Skip to content

Commit 57cb645

Browse files
committed
Update to 1.0.1
* Fix loading config * Disable adding texts to client * Remove cloud_button_title option
1 parent 4628999 commit 57cb645

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
RELEASE 1.0.1
5+
-------------
6+
* Fix loading config
7+
* Disable adding texts to client
8+
* Remove cloud_button_title option
9+
410
RELEASE 1.0
511
-----------
612
* Now button open a link in new window.

cloud_button.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Roundcube Plugin Cloud Button
44
* Plugin to add button in taskbar to open cloud storage.
55
*
6-
* @version 1.0
6+
* @version 1.0.1
77
* @author Alexander Pushkin <san4op@icloud.com>
88
* @copyright Copyright (c) 2017, Alexander Pushkin
99
* @link https://github.com/san4op/roundcube_cloud_button
@@ -12,26 +12,22 @@
1212

1313
class cloud_button extends rcube_plugin
1414
{
15-
private $title;
1615
private $url;
1716

1817
function init()
1918
{
20-
$rcmail = rcube::get_instance();
21-
22-
$this->title = $rcmail->config->get('cloud_button_title', '');
23-
$this->url = $rcmail->config->get('cloud_button_url', '');
19+
$this->load_config();
20+
$this->url = rcube::get_instance()->config->get('cloud_button_url', '');
2421

2522
if (!$this->url) {
2623
return;
2724
}
2825

2926
$this->include_stylesheet($this->local_skin_path() . '/cloud_button.css');
30-
$this->add_texts('localization/', true);
31-
$this->load_config();
27+
$this->add_texts('localization/');
3228

3329
$this->add_button(array(
34-
'label' => ($this->title != '' ? $this->title : 'cloud_button.cloud'),
30+
'label' => 'cloud_button.cloud',
3531
'href' => $this->url,
3632
'target' => '_blank',
3733
'class' => 'button-cloud',

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"keywords": ["button","cloud","taskbar"],
66
"homepage": "https://github.com/san4op/roundcube_cloud_button",
77
"license": "GPL-3.0",
8-
"version": "1.0",
8+
"version": "1.0.1",
99
"authors": [
1010
{
1111
"name": "Alexander Pushkin",

config.inc.php.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
## Cloud Button configuration file
44
##
55

6-
// Button text
7-
$config['cloud_button_title'] = 'Cloud';
8-
96
// URL to cloud storage
107
$config['cloud_button_url'] = 'https://cloud.example.com';
118

0 commit comments

Comments
 (0)