[Rt-commit] rt branch, 4.0/warn-rtfm-plugin, created. rt-4.0.1rc1-11-gdd1baa6

Alex Vandiver alexmv at bestpractical.com
Mon Jun 6 13:04:19 EDT 2011


The branch, 4.0/warn-rtfm-plugin has been created
        at  dd1baa61b0016839180507f0326b8e63e8a85893 (commit)

- Log -----------------------------------------------------------------
commit dd1baa61b0016839180507f0326b8e63e8a85893
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Jun 6 13:04:01 2011 -0400

    Explicitly warn on a commonly missed upgrade step

diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 3cd5b87..35e0970 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -548,7 +548,16 @@ our %META = (
         },
     },
     MailPlugins  => { Type => 'ARRAY' },
-    Plugins      => { Type => 'ARRAY' },
+    Plugins      => {
+        Type => 'ARRAY',
+        PostLoadCheck => sub {
+            my $self = shift;
+            my $value = $self->Get('Plugins');
+            # XXX Remove in RT 4.2
+            return unless $value and grep {$_ eq "RT::FM"} @{$value};
+            warn 'RTFM has been integrated into core RT, and must be removed from your @Plugins';
+        },
+    },
     GnuPG        => { Type => 'HASH' },
     GnuPGOptions => { Type => 'HASH',
         PostLoadCheck => sub {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list