Skip to content

Commit ae91a21

Browse files
committed
Class constant for SVN-based plugins min requirement
Following the same logic as for the framework version, we define SOURCESVN_VERSION_REQUIRED to make it easier to identify and globally increase the required SourceSVN version in all SVN-based plugins.
1 parent dd70a2f commit ae91a21

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

SourceSFSVN/SourceSFSVN.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class SourceSFSVNPlugin extends SourceSVNPlugin {
1111

1212
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
13+
const SOURCESVN_VERSION_REQUIRED = '0.16';
1314

1415
public function register() {
1516
$this->name = lang_get( 'plugin_SourceSFSVN_title' );
@@ -19,7 +20,7 @@ public function register() {
1920
$this->requires = array(
2021
'MantisCore' => self::MANTIS_VERSION,
2122
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
22-
'SourceSVN' => '0.16',
23+
'SourceSVN' => self::SOURCESVN_VERSION_REQUIRED,
2324
);
2425

2526
$this->author = 'John Reese';

SourceViewVC/SourceViewVC.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class SourceViewVCPlugin extends SourceSVNPlugin {
1212

1313
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
14+
const SOURCESVN_VERSION_REQUIRED = '0.16';
1415

1516
public function register() {
1617
$this->name = lang_get( 'plugin_SourceViewVC_title' );
@@ -20,7 +21,7 @@ public function register() {
2021
$this->requires = array(
2122
'MantisCore' => self::MANTIS_VERSION,
2223
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
23-
'SourceSVN' => '0.16',
24+
'SourceSVN' => self::SOURCESVN_VERSION_REQUIRED,
2425
);
2526

2627
$this->author = 'John Bailey';

SourceWebSVN/SourceWebSVN.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class SourceWebSVNPlugin extends SourceSVNPlugin {
1111

1212
const FRAMEWORK_VERSION_REQUIRED = '1.3.2';
13+
const SOURCESVN_VERSION_REQUIRED = '0.16';
1314

1415
public function register() {
1516
$this->name = lang_get( 'plugin_SourceWebSVN_title' );
@@ -19,7 +20,7 @@ public function register() {
1920
$this->requires = array(
2021
'MantisCore' => self::MANTIS_VERSION,
2122
'Source' => self::FRAMEWORK_VERSION_REQUIRED,
22-
'SourceSVN' => '0.16',
23+
'SourceSVN' => self::SOURCESVN_VERSION_REQUIRED,
2324
);
2425

2526
$this->author = 'John Reese';

0 commit comments

Comments
 (0)