Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
Update to the latest version of KB
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed May 8, 2016
1 parent a029d6c commit fcbdd16
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
9 changes: 5 additions & 4 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ public function initialize()

$this->userNotificationType->setType('jabber', t('Jabber'), '\Kanboard\Plugin\Jabber\Notification\Jabber');
$this->projectNotificationType->setType('jabber', t('Jabber'), '\Kanboard\Plugin\Jabber\Notification\Jabber');
}

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

public function getPluginDescription()
Expand All @@ -41,7 +42,7 @@ public function getPluginAuthor()

public function getPluginVersion()
{
return '1.0.3';
return '1.0.4';
}

public function getPluginHomepage()
Expand Down
4 changes: 2 additions & 2 deletions Template/config/integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<?= $this->form->label(t('Jabber nickname for Kanboard'), 'jabber_nickname') ?>
<?= $this->form->text('jabber_nickname', $values, array()) ?>

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

<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions Template/project/integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<?= $this->form->label(t('Multi-user chat room'), 'jabber_room') ?>
<?= $this->form->text('jabber_room', $values, array(), array('placeholder="[email protected]"')) ?>

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

<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions Template/user/integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<?= $this->form->label(t('Jabber Id'), 'jabber_jid') ?>
<?= $this->form->text('jabber_jid', $values) ?>

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

<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions Test/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public function testPlugin()
{
$plugin = new Plugin($this->container);
$this->assertSame(null, $plugin->initialize());
$this->assertSame(null, $plugin->onStartup());
$this->assertNotEmpty($plugin->getPluginName());
$this->assertNotEmpty($plugin->getPluginDescription());
$this->assertNotEmpty($plugin->getPluginAuthor());
Expand Down

0 comments on commit fcbdd16

Please sign in to comment.