Skip to content

Commit 4356418

Browse files
committed
Cgit: use MantisSourcePlugin::register()
Fixes #369
1 parent 0dd54ba commit 4356418

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

SourceCgit/SourceCgit.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,16 @@
1616

1717
class SourceCgitPlugin extends MantisSourceGitBasePlugin {
1818

19-
const PLUGIN_VERSION = '2.0.3';
20-
const FRAMEWORK_VERSION_REQUIRED = '2.0.0';
19+
const PLUGIN_VERSION = '2.1.0';
20+
const FRAMEWORK_VERSION_REQUIRED = '2.5.0';
2121

2222
public $type = 'cgit';
2323

2424
public function register() {
25-
$this->name = plugin_lang_get( 'title' );
26-
$this->description = plugin_lang_get( 'description' );
27-
28-
$this->version = self::PLUGIN_VERSION;
29-
$this->requires = array(
30-
'MantisCore' => self::MANTIS_VERSION,
31-
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
32-
);
25+
parent::register();
3326

3427
$this->author = 'Alexander';
3528
$this->contact = '[email protected]';
36-
$this->url = 'https://github.com/mantisbt-plugins/source-integration/';
3729
}
3830

3931
public function show_type() {

0 commit comments

Comments
 (0)