[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.5-169-ge0c0aa5
jesse
jesse at bestpractical.com
Tue Sep 29 16:10:48 EDT 2009
The branch, 3.8-trunk has been updated
via e0c0aa52505c2bbe789e535737ffb32b4525956f (commit)
from 5a5f58450ea27a6258639517dae114a2106901a1 (commit)
Summary of changes:
share/html/autohandler | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit e0c0aa52505c2bbe789e535737ffb32b4525956f
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Wed Sep 30 05:10:23 2009 +0900
Autohandler reordering for sanity
diff --git a/share/html/autohandler b/share/html/autohandler
index 95950b9..81046ac 100755
--- a/share/html/autohandler
+++ b/share/html/autohandler
@@ -50,12 +50,13 @@ use RT::Util;
$m->callback( ARGSRef => \%ARGS, CallbackName => 'Init', CallbackPage => '/autohandler' );
-RT::Interface::Web::MaybeShowInstallModePage();
+$m->{'rt_base_time'} = [ Time::HiRes::gettimeofday() ];
+
+$r->content_type("text/html; charset=utf-8");
# Roll back any dangling transactions from a previous failed connection
$RT::Handle->ForceRollback() if $RT::Handle->TransactionDepth;
-
RT::Interface::Web::MaybeEnableSQLStatementLog();
# avoid reentrancy, as suggested by masonbook
@@ -65,21 +66,21 @@ local *session unless $m->is_subrequest;
$m->autoflush( $m->request_comp->attr('AutoFlush') ) if ( $m->request_comp->attr_exists('AutoFlush') );
%ARGS = RT::Interface::Web::DecodeARGS(\%ARGS);
+
RT::Interface::Web::PreprocessTimeUpdates(\%ARGS);
-$m->{'rt_base_time'} = [ Time::HiRes::gettimeofday() ];
+RT::Interface::Web::MaybeShowInstallModePage();
+
$m->comp( '/Elements/SetupSessionCookie', %ARGS );
$session{'CurrentUser'} = RT::CurrentUser->new() unless ( $session{'CurrentUser'} && $session{'CurrentUser'}->Id );
# Set the proper encoding for the current language handle
-$r->content_type("text/html; charset=utf-8");
RT::Interface::Web::MaybeShowNoAuthPage(\%ARGS);
RT::Interface::Web::AttemptExternalAuth(\%ARGS);
-
delete $session{'CurrentUser'} unless $session{'CurrentUser'} && $session{'CurrentUser'}->Id;
# Process per-page authentication callbacks
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list