[Rt-commit] r10337 - in rt/branches/3.7-RTIR-RELENG/lib: .
ruz at bestpractical.com
ruz at bestpractical.com
Sun Jan 13 18:09:08 EST 2008
Author: ruz
Date: Sun Jan 13 18:09:08 2008
New Revision: 10337
Modified:
rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in
rt/branches/3.7-RTIR-RELENG/lib/RT/Config.pm
Log:
* revert the latest change
Modified: rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in (original)
+++ rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in Sun Jan 13 18:09:08 2008
@@ -52,7 +52,7 @@
use File::Spec ();
-use vars qw($Config $System $SystemUser $Nobody $Handle $Logger %InitCallbacks);
+use vars qw($Config $System $SystemUser $Nobody $Handle $Logger);
our $VERSION = '@RT_VERSION_MAJOR at .@RT_VERSION_MINOR at .@RT_VERSION_PATCH@';
@@ -140,8 +140,7 @@
ConnectToDatabase();
InitSystemObjects();
InitClasses();
- InitLogging();
- $_->() foreach @{ $InitCallbacks{'Init'} || [] };
+ InitLogging();
}
=head2 ConnectToDatabase
@@ -415,7 +414,6 @@
RT::ObjectCustomFieldValue
RT::Attribute
);
- $_->() foreach @{ $InitCallbacks{'InitClasses'} || [] };
}
=head2 InitSystemObjects
@@ -438,8 +436,6 @@
require RT::System;
$System = new RT::System;
-
- $_->() foreach @{ $InitCallbacks{'InitSystemObjects'} || [] };
}
=head1 CLASS METHODS
Modified: rt/branches/3.7-RTIR-RELENG/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/lib/RT/Config.pm (original)
+++ rt/branches/3.7-RTIR-RELENG/lib/RT/Config.pm Sun Jan 13 18:09:08 2008
@@ -279,10 +279,6 @@
Extension => $is_ext,
);
};
- local *Register = sub {
- my ($type, $cb) = @_;
- push @{ $RT::InitCallbacks{ $type } ||=[] }, $cb;
- };
local @INC = ($RT::LocalEtcPath, $RT::EtcPath, @INC);
require $args{'File'};
};
More information about the Rt-commit
mailing list