rt 4.2.14 (#13852)
[freeside.git] / rt / lib / RT / Plugin.pm
index d10f639..76af079 100644 (file)
@@ -2,7 +2,7 @@
 #
 # COPYRIGHT:
 #
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
@@ -84,6 +84,17 @@ sub Name {
     return $self->{name};
 }
 
     return $self->{name};
 }
 
+=head2 Version
+
+Returns the extension version.
+
+=cut
+
+sub Version {
+    my $self = shift;
+    return $self->Name->VERSION;
+}
+
 =head2 Path
 
 Takes a name of sub directory and returns its full path, for example:
 =head2 Path
 
 Takes a name of sub directory and returns its full path, for example: