Skip to content

Commit

Permalink
[#691] Grouping MT package variables together so they're more obvious…
Browse files Browse the repository at this point in the history
… for later elimination when refactoring
  • Loading branch information
jayallen committed Jan 25, 2011
1 parent 70798f3 commit 66fdc3d
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions lib/MT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ our ( $PRODUCT_NAME, $PRODUCT_CODE, $PRODUCT_VERSION, $VERSION_ID,
$PORTAL_URL );
our ( $MT_DIR, $APP_DIR, $CFG_DIR, $CFG_FILE, $SCRIPT_SUFFIX );
our (
$plugin_sig, $plugin_envelope, $plugin_registry,
%Plugins, @Components, %Components,
$DebugMode, $mt_inst, %mt_inst
$plugin_sig, %Plugins, @Components, $mt_inst,
$plugin_envelope, $DebugMode, %Components, %mt_inst,
$plugin_registry, %CallbackAlias, $plugins_installed
);
my %Text_filters;
my ( %Text_filters, $plugin_full_path, %CallbacksEnabled, @Callbacks );

# For state determination in MT::Object
our $plugins_installed;
our $CallbacksEnabled = 1;

BEGIN {
$plugins_installed = 0;
Expand Down Expand Up @@ -558,8 +557,6 @@ sub log {

} ## end sub log

my $plugin_full_path;

sub run_tasks {
my $mt = shift;
require MT::TaskMgr;
Expand Down Expand Up @@ -632,11 +629,6 @@ sub add_plugin {
1;
} ## end sub add_plugin

our %CallbackAlias;
our $CallbacksEnabled = 1;
my %CallbacksEnabled;
my @Callbacks;

sub add_callback {
my $class = shift;
my ( $meth, $priority, $plugin, $code ) = @_;
Expand Down

0 comments on commit 66fdc3d

Please sign in to comment.