[Rt-commit] rt branch, 4.0/fix-server-plugin-paths, created. rt-4.0.8-219-g5276e8f

? sunnavy sunnavy at bestpractical.com
Sun Dec 9 10:30:42 EST 2012


The branch, 4.0/fix-server-plugin-paths has been created
        at  5276e8fdd0d06c27b8042ec4883071e232c97008 (commit)

- Log -----------------------------------------------------------------
commit 5276e8fdd0d06c27b8042ec4883071e232c97008
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sun Dec 9 23:23:08 2012 +0800

    init plugin paths earlier to load all the _Local.pm and _Vendor.pm in plugins
    
    e.g. without this, RT/Record_Local.pm in a plugin won't be loaded because
    plugin libs are added to @INC after RT::Record is loaded, which is too late.

diff --git a/sbin/rt-server.in b/sbin/rt-server.in
index f84f6c1..e6fb94a 100644
--- a/sbin/rt-server.in
+++ b/sbin/rt-server.in
@@ -91,6 +91,7 @@ if (grep { m/help/ } @ARGV) {
 
 require RT;
 RT->LoadConfig();
+RT->InitPluginPaths;
 RT->InitLogging();
 require Module::Refresh if RT->Config->Get('DevelMode');
 

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


More information about the Rt-commit mailing list