}
require RT;
+die "Wrong version of RT $RT::VERSION found; need 4.2.*"
+ unless $RT::VERSION =~ /^4\.2\./;
+
RT->LoadConfig();
RT->InitPluginPaths();
RT->InitLogging();
# we must disconnect DB before fork
if ($RT::Handle) {
+ $RT::Handle->dbh->disconnect if $RT::Handle->dbh;
$RT::Handle->dbh(undef);
undef $RT::Handle;
}