diff --git a/Source/MantisSourcePlugin.class.php b/Source/MantisSourcePlugin.class.php index 9fc271c..73553c9 100644 --- a/Source/MantisSourcePlugin.class.php +++ b/Source/MantisSourcePlugin.class.php @@ -161,7 +161,7 @@ class SourceGenericPlugin extends MantisSourcePlugin { function register() { $this->name = plugin_lang_get( 'title', 'Source' ); - $this->version = plugin_lang_get( 'version', 'Source' ); + $this->version = SourcePlugin::$framework_version; } public $type = 'generic'; diff --git a/Source/Source.php b/Source/Source.php index 613f720..ab03af5 100644 --- a/Source/Source.php +++ b/Source/Source.php @@ -10,13 +10,14 @@ * with the Mantis bug tracker software. */ class SourcePlugin extends MantisPlugin { + static $framework_version = '0.16'; static $cache = array(); function register() { $this->name = plugin_lang_get( 'title' ); $this->description = plugin_lang_get( 'description' ); - $this->version = '0.16'; + $this->version = self::$framework_version; $this->requires = array( 'MantisCore' => '1.2.0', 'Meta' => '0.1', diff --git a/Source/SourceIntegration.php b/Source/SourceIntegration.php index c5fb628..3b9b98b 100644 --- a/Source/SourceIntegration.php +++ b/Source/SourceIntegration.php @@ -6,7 +6,7 @@ final class SourceIntegrationPlugin extends MantisPlugin { function register() { $this->name = plugin_lang_get( 'title', 'Source' ); - $this->version = '0.16'; + $this->version = SourcePlugin::$framework_version; } function hooks() {