Skip to content
This repository was archived by the owner on Feb 3, 2019. It is now read-only.

Commit cfdd7db

Browse files
committed
Update to the latest version of KB
1 parent f76cd8d commit cfdd7db

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

Notification/Hipchat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getMessage(array $project, $event_name, array $event_data)
8181
$title = $this->notification->getTitleWithoutAuthor($event_name, $event_data);
8282
}
8383

84-
$html = '<img src="http://kanboard.net/assets/img/favicon-32x32.png"/>';
84+
$html = '<img src="https://kanboard.net/assets/img/favicon-32x32.png"/>';
8585
$html .= '<strong>'.$project['name'].'</strong><br/>'.$event_data['task']['title'].'<br/>';
8686
$html .= $title;
8787

Plugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ public function initialize()
2020

2121
$this->userNotificationType->setType('hipchat', t('Hipchat'), '\Kanboard\Plugin\Hipchat\Notification\Hipchat');
2222
$this->projectNotificationType->setType('hipchat', t('Hipchat'), '\Kanboard\Plugin\Hipchat\Notification\Hipchat');
23+
}
2324

24-
$this->on('app.bootstrap', function($container) {
25-
Translator::load($container['config']->getCurrentLanguage(), __DIR__.'/Locale');
26-
});
25+
public function onStartup()
26+
{
27+
Translator::load($this->language->getCurrentLanguage(), __DIR__.'/Locale');
2728
}
2829

2930
public function getPluginDescription()
@@ -38,7 +39,7 @@ public function getPluginAuthor()
3839

3940
public function getPluginVersion()
4041
{
41-
return '1.0.3';
42+
return '1.0.4';
4243
}
4344

4445
public function getPluginHomepage()

Template/config/integration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<?= $this->form->label(t('Hipchat API Token'), 'hipchat_api_token') ?>
77
<?= $this->form->text('hipchat_api_token', $values) ?>
88

9-
<p class="form-help"><a href="https://github.com/kanboard/plugin-hipchat" target="_blank"><?= t('Help on Hipchat integration') ?></a></p>
9+
<p class="form-help"><a href="https://kanboard.net/plugin/hipchat" target="_blank"><?= t('Help on Hipchat integration') ?></a></p>
1010

1111
<div class="form-actions">
1212
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
1313
</div>
14-
</div>
14+
</div>

Template/project/integration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<?= $this->form->label(t('Room notification token'), 'hipchat_room_token') ?>
77
<?= $this->form->text('hipchat_room_token', $values) ?>
88

9-
<p class="form-help"><a href="https://github.com/kanboard/plugin-hipchat" target="_blank"><?= t('Help on Hipchat integration') ?></a></p>
9+
<p class="form-help"><a href="https://kanboard.net/plugin/hipchat" target="_blank"><?= t('Help on Hipchat integration') ?></a></p>
1010

1111
<div class="form-actions">
1212
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
1313
</div>
14-
</div>
14+
</div>

Test/PluginTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public function testPlugin()
1010
{
1111
$plugin = new Plugin($this->container);
1212
$this->assertSame(null, $plugin->initialize());
13+
$this->assertSame(null, $plugin->onStartup());
1314
$this->assertNotEmpty($plugin->getPluginName());
1415
$this->assertNotEmpty($plugin->getPluginDescription());
1516
$this->assertNotEmpty($plugin->getPluginAuthor());

0 commit comments

Comments
 (0)