[Rt-commit] r4426 - in rt/branches/3.7-EXPERIMENTAL: . bin
docs/design_docs etc etc/upgrade/3.1.0 etc/upgrade/3.3.0
etc/upgrade/3.5.1 etc/upgrade/QUEBEC html html/Admin
html/Admin/CustomFields html/Admin/Elements html/Admin/Groups
html/Admin/Queues html/Admin/Users html/Elements
html/NoAuth/js html/Search html/Search/Elements
html/SelfService/Elements html/Ticket html/Ticket/Attachment
html/Ticket/Elements html/User html/User/Groups
lib/t/regression sbin
ruz at bestpractical.com
ruz at bestpractical.com
Fri Jan 20 07:32:13 EST 2006
Author: ruz
Date: Fri Jan 20 07:32:02 2006
New Revision: 4426
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in
rt/branches/3.7-EXPERIMENTAL/docs/design_docs/TransactionTypes.txt
rt/branches/3.7-EXPERIMENTAL/docs/design_docs/string-extraction-guide.txt
rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in
rt/branches/3.7-EXPERIMENTAL/etc/initialdata
rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.1.0/acl.Pg
rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.3.0/acl.Pg
rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.5.1/content
rt/branches/3.7-EXPERIMENTAL/etc/upgrade/QUEBEC/content
rt/branches/3.7-EXPERIMENTAL/html/Admin/CustomFields/index.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/CreateUserCalled
rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFieldValuesSource
rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFields
rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/ListGlobalScrips
rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickCustomFields
rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectStage
rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Members.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Modify.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/index.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/Modify.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/index.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/Modify.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/index.html
rt/branches/3.7-EXPERIMENTAL/html/Admin/index.html
rt/branches/3.7-EXPERIMENTAL/html/Elements/EditCustomFieldBinary
rt/branches/3.7-EXPERIMENTAL/html/Elements/GotoTicket
rt/branches/3.7-EXPERIMENTAL/html/Elements/Logo
rt/branches/3.7-EXPERIMENTAL/html/Elements/MessageBox
rt/branches/3.7-EXPERIMENTAL/html/Elements/QueueSummary
rt/branches/3.7-EXPERIMENTAL/html/Elements/QuickCreate
rt/branches/3.7-EXPERIMENTAL/html/Elements/RefreshHomepage
rt/branches/3.7-EXPERIMENTAL/html/Elements/SetupSessionCookie
rt/branches/3.7-EXPERIMENTAL/html/NoAuth/css/3.5-default/nav.css
rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/util.js
rt/branches/3.7-EXPERIMENTAL/html/Search/Bulk.html
rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/Chart
rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html
rt/branches/3.7-EXPERIMENTAL/html/SelfService/Elements/GotoTicket
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Attachment/dhandler
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Create.html
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/PreviewScrips
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowAttachments
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowDependencies
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMembers
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Reminders.html
rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Members.html
rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Modify.html
rt/branches/3.7-EXPERIMENTAL/html/User/Prefs.html
rt/branches/3.7-EXPERIMENTAL/html/autohandler
rt/branches/3.7-EXPERIMENTAL/lib/t/regression/03web_compiliation_errors.t
rt/branches/3.7-EXPERIMENTAL/lib/t/regression/04send_email.t
rt/branches/3.7-EXPERIMENTAL/lib/t/regression/09-api-date.t
rt/branches/3.7-EXPERIMENTAL/lib/t/regression/19-rtname.t
rt/branches/3.7-EXPERIMENTAL/sbin/rt-clean-sessions.in
Log:
r1641 at cubic-pc: cubic | 2006-01-20 12:40:26 +0300
* config handling changes
Modified: rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in (original)
+++ rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in Fri Jan 20 07:32:02 2006
@@ -175,7 +175,7 @@
basic actions are: C<correspond>, C<comment>.
-If you've set the RT configuration variable B<$RT::UnsafeEmailCommands>,
+If you've set the RT configuration variable B<< C<UnsafeEmailCommands> >>,
C<take> and C<resolve> are also available. You can execute two or more
actions on a single message using a C<-> separated list. RT will execute
the actions in the listed order. For example you can use C<take-comment>,
@@ -256,13 +256,13 @@
before allowing them to communicate with the system. You can do this
via a plug-in mechanism in the RT configuration.
-You can set the array C<@RT::MailPlugins> to be a list of plugins. The
+You can set the array C<@MailPlugins> to be a list of plugins. The
default plugin, if this is not given, is C<Auth::MailFrom> - that is,
authentication of the person is done based on the C<From> header of the
email. If you have additional filters or authentication mechanisms, you
can list them here and they will be called in order:
- @RT::MailPlugins = (
+ Set( @MailPlugins =>
"Filter::SpamAssassin",
"Auth::LDAP",
# ...
@@ -270,12 +270,12 @@
See the documentation for any additional plugins you have.
-You may also put Perl subroutines into the C<@RT::MailPlugins> array, if
+You may also put Perl subroutines into the C<@MailPlugins> array, if
they behave as described below.
=head1 WRITING PLUGINS
-What's actually going on in the above is that C<@RT::MailPlugins> is a
+What's actually going on in the above is that C<@MailPlugins> is a
list of Perl modules; RT prepends C<RT::Interface::Email::> to the name,
to form a package name, and then C<use>'s this module. The module is
expected to provide a C<GetCurrentUser> subroutine, which takes a hash of
Modified: rt/branches/3.7-EXPERIMENTAL/docs/design_docs/TransactionTypes.txt
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/docs/design_docs/TransactionTypes.txt (original)
+++ rt/branches/3.7-EXPERIMENTAL/docs/design_docs/TransactionTypes.txt Fri Jan 20 07:32:02 2006
@@ -28,8 +28,8 @@
when new transaction types are needed.
-$RT::TransactionTypes ...and...
-%RT::TransactionTypes
+RT->Config->Get('TransactionTypes') ...and...
+RT->Config->Get('TransactionTypes')
- global object which contains all TransactionTypes
- used by all UIs to create menues of possible (user) actions (one TransactionType is a user action)
@@ -37,7 +37,7 @@
$Ticket->AddTransaction($TransactionName), which should be equivalent
with i.e. $Ticket->Correspond when $TransactionName is 'Correspond'
(AUTOLOAD should call the do-sub if exists
-$RT::TransactionTypes{$TransactionName})
+RT->Config->Get('TransactionTypes')->{$TransactionName})
The RT::Ticket::AddTransaction will create a new transaction of the
right TransactionClass (maybe via a sub
Modified: rt/branches/3.7-EXPERIMENTAL/docs/design_docs/string-extraction-guide.txt
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/docs/design_docs/string-extraction-guide.txt (original)
+++ rt/branches/3.7-EXPERIMENTAL/docs/design_docs/string-extraction-guide.txt Fri Jan 20 07:32:02 2006
@@ -63,11 +63,11 @@
to add a bit of framework to make it work in 2.1.4
-The string <& /Elements/TitleBoxStart, width=> "40%", titleright => "RT $RT::VERSION for $RT::rtname", title => 'Login' &>
+The string <& /Elements/TitleBoxStart, width=> "40%", titleright => "RT $RT::VERSION for ". RT->Config->Get('rtname'), title => 'Login' &>
should become <& /Elements/TitleBoxStart,
width=> "40%",
- titleright => loc("RT [_1] for [_2]",$RT::VERSION, $RT::rtname),
+ titleright => loc("RT [_1] for [_2]",$RT::VERSION, RT->Config->Get('rtname')),
title => loc('Login'),
&>
Modified: rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in Fri Jan 20 07:32:02 2006
@@ -105,7 +105,7 @@
Set($OwnerEmail , 'root');
# If $LoopsToRTOwner is defined, RT will send mail that it believes
-# might be a loop to $RT::OwnerEmail
+# might be a loop to $OwnerEmail
Set($LoopsToRTOwner , 1);
Modified: rt/branches/3.7-EXPERIMENTAL/etc/initialdata
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/initialdata (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/initialdata Fri Jan 20 07:32:02 2006
@@ -546,8 +546,8 @@
elsif ($obj->Type eq 'approval') {
$obj->SetStatus( Status => 'open', Force => 1 );
}
- elsif ($RT::UseCodeTickets and $obj->Type eq 'code') {
- #XXX: $RT::UseCodeTickets used only once here!!!
+ elsif (RT->Config->Get('UseCodeTickets') and $obj->Type eq 'code') {
+ #XXX: RT->Config->Get('UseCodeTickets') used only once here!!!
my $code = $obj->Transactions->First->Content;
my $rv;
Modified: rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.1.0/acl.Pg
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.1.0/acl.Pg (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.1.0/acl.Pg Fri Jan 20 07:32:02 2006
@@ -11,7 +11,7 @@
foreach my $table (@tables) {
push @acls,
"GRANT SELECT, INSERT, UPDATE, DELETE ON $table to "
- . $RT::DatabaseUser . ";";
+ . RT->Config->Get('DatabaseUser') . ";";
}
return (@acls);
Modified: rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.3.0/acl.Pg
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.3.0/acl.Pg (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.3.0/acl.Pg Fri Jan 20 07:32:02 2006
@@ -12,7 +12,7 @@
foreach my $table (@tables) {
push @acls,
"GRANT SELECT, INSERT, UPDATE, DELETE ON $table to "
- . $RT::DatabaseUser . ";";
+ . RT->Config->Get('DatabaseUser') . ";";
}
return (@acls);
Modified: rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.5.1/content
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.5.1/content (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/upgrade/3.5.1/content Fri Jan 20 07:32:02 2006
@@ -2,7 +2,7 @@
{ Name => 'Search - My Tickets',
Description => '[_1] highest priority tickets I own',
Content =>
- { Format => "'<a href=\"__WebPath__/Ticket/Display.html?id=__id__\">__id__</a>/TITLE:#', '<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__Subject__</a>/TITLE:Subject', Priority, QueueName, ExtendedStatus",
+ { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#', '<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject', Priority, QueueName, ExtendedStatus},
Query => " Owner = '__CurrentUser__' AND ( Status = 'new' OR Status = 'open')",
OrderBy => 'Priority',
Order => 'DESC' },
Modified: rt/branches/3.7-EXPERIMENTAL/etc/upgrade/QUEBEC/content
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/upgrade/QUEBEC/content (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/upgrade/QUEBEC/content Fri Jan 20 07:32:02 2006
@@ -2,7 +2,7 @@
{ Name => 'Search - My Tickets',
Description => '[_1] highest priority tickets I own',
Content =>
- { Format => "'<a href=\"__WebPath__/Ticket/Display.html?id=__id__\">__id__</a>/TITLE:#', '<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__Subject__</a>/TITLE:Subject', Priority, QueueName, ExtendedStatus",
+ { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#', '<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject', Priority, QueueName, ExtendedStatus},
Query => " Owner = '__CurrentUser__' AND ( Status = 'new' OR Status = 'open')",
OrderBy => 'Priority',
Order => 'DESC' },
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/CustomFields/index.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/CustomFields/index.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/CustomFields/index.html Fri Jan 20 07:32:02 2006
@@ -71,7 +71,7 @@
</ul>
% }
-<form action="<%$RT::WebPath%>/Admin/CustomFields/index.html" method="get">
+<form action="<%RT->Config->Get('WebPath')%>/Admin/CustomFields/index.html" method="get">
<&|/l&>Only show custom fields for:</&>
<select name="Type">
<option value="" <% !$Type && 'selected'%> ><% loc('(any)') %></option>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/CreateUserCalled
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/CreateUserCalled (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/CreateUserCalled Fri Jan 20 07:32:02 2006
@@ -43,6 +43,6 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<form method="get" action="<% $RT::WebPath %>/Admin/Users/Create.html">
+<form method="get" action="<% RT->Config->Get('WebPath') %>/Admin/Users/Create.html">
<&|/l&>New user called</&> <input name="Name" size="10" /><input type="submit" class="button" value="<&|/l&>Create</&>" />
</form>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFieldValuesSource
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFieldValuesSource (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFieldValuesSource Fri Jan 20 07:32:02 2006
@@ -11,7 +11,7 @@
return unless $CustomField->IsSelectionType;
my @sources;
-foreach my $class( 'RT::CustomFieldValues', @RT::CustomFieldValuesSources ) {
+foreach my $class( 'RT::CustomFieldValues', RT->Config->Get('CustomFieldValuesSources') ) {
next unless $class;
local $@;
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFields
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFields (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/EditCustomFields Fri Jan 20 07:32:02 2006
@@ -45,7 +45,7 @@
%# END BPS TAGGED BLOCK }}}
<& /Elements/ListActions, actions => \@results &>
-<form action="<%$RT::WebPath%><% $m->request_comp->path |n %>" method="post" name="EditCustomFields">
+<form action="<%RT->Config->Get('WebPath')%><% $m->request_comp->path |n %>" method="post" name="EditCustomFields">
<input type="hidden" class="hidden" name="id" value="<% $Object->Id %>" />
<input type="hidden" class="hidden" name="ObjectType" value="<% $ObjectType %>" />
<input type="hidden" class="hidden" name="SubType" value="<% $SubType %>" />
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/ListGlobalScrips
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/ListGlobalScrips (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/ListGlobalScrips Fri Jan 20 07:32:02 2006
@@ -54,7 +54,7 @@
% while (my $scrip = $Scrips->Next ) {
<li>
-<a href="<%$RT::WebPath%>/Admin/Global/Scrip.html?id=<%$scrip->Id%>&Queue=<%0%>">
+<a href="<%RT->Config->Get('WebPath')%>/Admin/Global/Scrip.html?id=<%$scrip->Id%>&Queue=<%0%>">
% if ($scrip->Description) {
<% $scrip->Description %>
% } else {
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickCustomFields
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickCustomFields (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/PickCustomFields Fri Jan 20 07:32:02 2006
@@ -57,7 +57,7 @@
</td>
% }
<td valign="top">
- <a href="<%$RT::WebPath%>/Admin/CustomFields/Modify.html?id=<%$CustomFieldObj->id()%>">
+ <a href="<%RT->Config->Get('WebPath')%>/Admin/CustomFields/Modify.html?id=<%$CustomFieldObj->id()%>">
% if ($CustomFieldObj->Name) {
<b><%$CustomFieldObj->Name%></b>
% } else {
@@ -72,7 +72,7 @@
% # show 'move up' unless it's the first item
% if ($count++ and $Checked) {
<td valign="top">
- [<a href="<%$RT::WebPath%><% $m->request_comp->path |n %>?id=<%$id%>&SubType=<%$SubType%>&CustomField=<%$CustomFieldObj->id%>&Move=-1"><&|/l&>Move up</&></a>]
+ [<a href="<%RT->Config->Get('WebPath')%><% $m->request_comp->path |n %>?id=<%$id%>&SubType=<%$SubType%>&CustomField=<%$CustomFieldObj->id%>&Move=-1"><&|/l&>Move up</&></a>]
% } else {
<td valign="top" align="right">
% }
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectStage
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectStage (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Elements/SelectStage Fri Jan 20 07:32:02 2006
@@ -55,7 +55,7 @@
$Default = 'TransactionCreate';
}
my @stages = 'TransactionCreate';
-push @stages, 'TransactionBatch' if $RT::UseTransactionBatch;
+push @stages, 'TransactionBatch' if RT->Config->Get('UseTransactionBatch');
push @stages, 'Disabled';
</%INIT>
<%ARGS>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Members.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Members.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Members.html Fri Jan 20 07:32:02 2006
@@ -52,7 +52,7 @@
<&| /Widgets/TitleBox, title => loc('Editing membership for group [_1]', $Group->Name) &>
-<form action="<%$RT::WebPath%>/Admin/Groups/Members.html" method="post">
+<form action="<%RT->Config->Get('WebPath')%>/Admin/Groups/Members.html" method="post">
<input type="hidden" class="hidden" name="id" value="<%$Group->Id%>" />
<table width="100%">
<tr>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Modify.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Modify.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/Modify.html Fri Jan 20 07:32:02 2006
@@ -53,7 +53,7 @@
-<form action="<%$RT::WebPath%>/Admin/Groups/Modify.html" method="post" enctype="multipart/form-data">
+<form action="<%RT->Config->Get('WebPath')%>/Admin/Groups/Modify.html" method="post" enctype="multipart/form-data">
%unless ($Group->Id) {
<input type="hidden" class="hidden" name="id" value="new" />
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/index.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/index.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Groups/index.html Fri Jan 20 07:32:02 2006
@@ -58,17 +58,17 @@
%}
</ul>
%if (my $ids = join(',', @ids)) {
-<em>(<a href="<%$RT::WebPath%>/Download/Tabular/Group/<% $ids %>/Groups.tsv"><&|/l&>Download as a tab-delimited file</&></a>)</em><br />
+<em>(<a href="<%RT->Config->Get('WebPath')%>/Download/Tabular/Group/<% $ids %>/Groups.tsv"><&|/l&>Download as a tab-delimited file</&></a>)</em><br />
%}
<br /><br />
-<form method="post" action="<% $RT::WebPath %>/Admin/Groups/index.html">
+<form method="post" action="<% RT->Config->Get('WebPath') %>/Admin/Groups/index.html">
<input type="checkbox" class="checkbox" name="FindDisabledGroups" value="1" /> <&|/l&>Include disabled groups in listing.</&>
<br />
<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
</form>
<br /><br />
-<form method="post" action="<% $RT::WebPath %>/Admin/Groups/index.html">
+<form method="post" action="<% RT->Config->Get('WebPath') %>/Admin/Groups/index.html">
<&|/l&>Find groups whose</&> <& /Elements/SelectGroups &><br />
<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
</form>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/Modify.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/Modify.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/Modify.html Fri Jan 20 07:32:02 2006
@@ -52,7 +52,7 @@
-<form action="<%$RT::WebPath%>/Admin/Queues/Modify.html" method="post">
+<form action="<%RT->Config->Get('WebPath')%>/Admin/Queues/Modify.html" method="post">
%if ($Create ) {
<input type="hidden" class="hidden" name="id" value="new" />
% } else {
@@ -72,13 +72,13 @@
<&|/l&>Reply Address</&>:
</td><td>
<input name="CorrespondAddress" value="<% ($Create) ? "" : $QueueObj->CorrespondAddress %>" />
-<br /><span><em><&|/l , $RT::CorrespondAddress&>(If left blank, will default to [_1])</&></em></span>
+<br /><span><em><&|/l , RT->Config->Get('CorrespondAddress')&>(If left blank, will default to [_1])</&></em></span>
</td>
<td align="right">
<&|/l&>Comment Address</&>: </td><td>
<input name="CommentAddress" value="<% ($Create) ? "" : $QueueObj->CommentAddress %>" />
-<br /><span><em><&|/l , $RT::CommentAddress&>(If left blank, will default to [_1])</&></em></span>
+<br /><span><em><&|/l , RT->Config->Get('CommentAddress')&>(If left blank, will default to [_1])</&></em></span>
</td>
</tr><tr>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/index.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/index.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Queues/index.html Fri Jan 20 07:32:02 2006
@@ -61,7 +61,7 @@
%}
</ul>
<br />
-<form method="post" action="<% $RT::WebPath %>/Admin/Queues/index.html">
+<form method="post" action="<% RT->Config->Get('WebPath') %>/Admin/Queues/index.html">
<input type="checkbox" class="checkbox" name="FindDisabledQueues" value="1" /> <&|/l&>Include disabled queues in listing.</&>
<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
</form>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/Modify.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/Modify.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/Modify.html Fri Jan 20 07:32:02 2006
@@ -52,7 +52,7 @@
<& /Elements/ListActions, actions => \@results &>
-<form action="<%$RT::WebPath%>/Admin/Users/Modify.html" method="post" enctype="multipart/form-data">
+<form action="<%RT->Config->Get('WebPath')%>/Admin/Users/Modify.html" method="post" enctype="multipart/form-data">
%if ($Create) {
<input type="hidden" class="hidden" name="id" value="new" />
% } else {
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/index.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/index.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/index.html Fri Jan 20 07:32:02 2006
@@ -61,11 +61,11 @@
%}
</ul>
%if (my $ids = join(',', @ids)) {
-<em>(<a href="<%$RT::WebPath%>/Download/Tabular/User/<% $ids %>/Users.tsv"><&|/l&>Download as a tab-delimited file</&></a>)</em><br />
+<em>(<a href="<%RT->Config->Get('WebPath')%>/Download/Tabular/User/<% $ids %>/Users.tsv"><&|/l&>Download as a tab-delimited file</&></a>)</em><br />
%}
<br /><br />
-<form method="post" action="<% $RT::WebPath %>/Admin/Users/index.html">
+<form method="post" action="<% RT->Config->Get('WebPath') %>/Admin/Users/index.html">
<&|/l&>Find people whose</&> <& /Elements/SelectUsers &><br />
<input type="checkbox" class="checkbox" name="FindDisabledUsers" value="1" /> <&|/l&>Include disabled users in search.</&>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/index.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/index.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/index.html Fri Jan 20 07:32:02 2006
@@ -48,7 +48,7 @@
<ul>
% foreach my $key (sort keys %$tabs) {
-<li><span><a href="<%$RT::WebPath%>/<%$tabs->{$key}->{'path'}|n %>"><%$tabs->{$key} ->{'title'}%></a></span><br />
+<li><span><a href="<%RT->Config->Get('WebPath')%>/<%$tabs->{$key}->{'path'}|n %>"><%$tabs->{$key} ->{'title'}%></a></span><br />
<%$tabs->{$key}->{description}%>
</li>
%}
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/EditCustomFieldBinary
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/EditCustomFieldBinary (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/EditCustomFieldBinary Fri Jan 20 07:32:02 2006
@@ -45,7 +45,7 @@
%# END BPS TAGGED BLOCK }}}
% while ($Values and my $value = $Values->Next ) {
%# XXX - let user download the file(s) here?
-<input type="checkbox" class="checkbox" name="<%$NamePrefix%><%$CustomField->Id%>-DeleteValueIds" value="<% $value->Id %>" /><a href="<%$RT::WebPath%>/Download/CustomFieldValue/<% $value->Id %>/<% $value->Content %>"><% $value->Content %></a><br />
+<input type="checkbox" class="checkbox" name="<%$NamePrefix%><%$CustomField->Id%>-DeleteValueIds" value="<% $value->Id %>" /><a href="<%RT->Config->Get('WebPath')%>/Download/CustomFieldValue/<% $value->Id %>/<% $value->Content %>"><% $value->Content %></a><br />
% }
% if (!$MaxValues or !$Values or $Values->Count < $MaxValues) {
<input type="file" name="<%$NamePrefix%><%$CustomField->Id%>-Upload" />
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/GotoTicket
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/GotoTicket (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/GotoTicket Fri Jan 20 07:32:02 2006
@@ -43,4 +43,4 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<form action="<%$RT::WebPath%>/Ticket/Display.html"><input type="submit" class="button" value="<&|/l&>Goto ticket</&>" /> <input size="5" name="id" accesskey="0" /></form>
+<form action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html"><input type="submit" class="button" value="<&|/l&>Goto ticket</&>" /> <input size="5" name="id" accesskey="0" /></form>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/Logo
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/Logo (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/Logo Fri Jan 20 07:32:02 2006
@@ -44,9 +44,9 @@
%#
%# END BPS TAGGED BLOCK }}}
<div id="logo">
- <a href="http://bestpractical.com"><img src="<%$RT::WebImagesURL%>/bplogo.gif" alt="<%loc("Best Practical Solutions, LLC corporate logo")%>" width="177" height="33" /></a>
+ <a href="http://bestpractical.com"><img src="<%RT->Config->Get('WebImagesURL')%>/bplogo.gif" alt="<%loc("Best Practical Solutions, LLC corporate logo")%>" width="177" height="33" /></a>
% if ($show_name) {
- <div class="rtname"><% loc("RT for [_1]", $RT::rtname) %></div>
+ <div class="rtname"><% loc("RT for [_1]", RT->Config->Get('rtname')) %></div>
% }
</div>
<%args>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/MessageBox
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/MessageBox (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/MessageBox Fri Jan 20 07:32:02 2006
@@ -65,7 +65,7 @@
$Name => 'Content'
$Default => ''
$Width => RT->Config->Get('MessageBoxWidth') || 72
-$Height => $RT::MessageBoxHeight || 15
+$Height => RT->Config->Get('MessageBoxHeight') || 15
$Wrap => RT->Config->Get('MessageBoxWrap') || 'HARD'
$IncludeSignature => 1
</%ARGS>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/QueueSummary
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/QueueSummary (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/QueueSummary Fri Jan 20 07:32:02 2006
@@ -56,10 +56,10 @@
% my $queue_cond = "Queue = '$queue->{Name}' AND ";
% my $all_q = $queue_cond . "(Status = 'open' OR Status = 'new' OR Status = 'stalled')";
<tr class="<% $i%2 ? 'oddline' : 'evenline'%>" >
-<td><a href="<% $RT::WebPath%>/Search/Results.html?Query=<%$all_q%>" title="<% $queue->{Description} %>"><%$queue->{Name}%></a></td>
+<td><a href="<% RT->Config->Get('WebPath')%>/Search/Results.html?Query=<%$all_q%>" title="<% $queue->{Description} %>"><%$queue->{Name}%></a></td>
% for my $condition (@$conditions) {
% $Tickets->FromSQL($queue_cond.$condition->{cond}),
-<td align="right"><a href="<% $RT::WebPath%>/Search/Results.html?Query=<%$queue_cond.$condition->{cond}%>"><% $Tickets->Count %></a></td>
+<td align="right"><a href="<% RT->Config->Get('WebPath')%>/Search/Results.html?Query=<%$queue_cond.$condition->{cond}%>"><% $Tickets->Count %></a></td>
% }
</tr>
% }
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/QuickCreate
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/QuickCreate (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/QuickCreate Fri Jan 20 07:32:02 2006
@@ -45,7 +45,7 @@
%# END BPS TAGGED BLOCK }}}
<div class="quick-create">
<&| /Widgets/TitleBox, title => loc('Quick ticket creation') &>
-<form method="post" action="<%$RT::WebPath%>/index.html">
+<form method="post" action="<%RT->Config->Get('WebPath')%>/index.html">
<input type="hidden" class="hidden" name="QuickCreate" value="1" />
<table>
<tr><td>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/RefreshHomepage
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/RefreshHomepage (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/RefreshHomepage Fri Jan 20 07:32:02 2006
@@ -43,7 +43,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<form method="get" action="<%$RT::WebPath . $m->request_comp->path %>">
+<form method="get" action="<%RT->Config->Get('WebPath') . $m->request_comp->path %>">
<& /Elements/Refresh, Name => 'HomeRefreshInterval', Default => $session {'home_refresh_interval'} &>
<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
</form>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/SetupSessionCookie
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/SetupSessionCookie (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/SetupSessionCookie Fri Jan 20 07:32:02 2006
@@ -49,18 +49,18 @@
use RT::Interface::Web::Session;
my %cookies = CGI::Cookie->fetch;
-my $cookiename = "RT_SID_".$RT::rtname;
+my $cookiename = "RT_SID_".RT->Config->Get('rtname');
$cookiename .= ".".$ENV{'SERVER_PORT'} if $ENV{'SERVER_PORT'};
$SessionCookie ||= ( $cookies{$cookiename} ? $cookies{$cookiename}->value : undef ),
tie %session, 'RT::Interface::Web::Session', $SessionCookie;
undef $cookies{$cookiename} unless $session{'_session_id'} eq $SessionCookie;
-if ( int $RT::AutoLogoff ) {
+if ( int RT->Config->Get('AutoLogoff') ) {
my $now = int(time/60);
my $last_update = $session{'_session_last_update'} || 0;
- if ( $last_update && ($now - $last_update - $RT::AutoLogoff) > 0 ) {
+ if ( $last_update && ($now - $last_update - RT->Config->Get('AutoLogoff')) > 0 ) {
# clean up sessions, but we should leave the session id
%session = (_session_id => $session{'_session_id'});
}
Modified: rt/branches/3.7-EXPERIMENTAL/html/NoAuth/css/3.5-default/nav.css
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/NoAuth/css/3.5-default/nav.css (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/NoAuth/css/3.5-default/nav.css Fri Jan 20 07:32:02 2006
@@ -100,15 +100,15 @@
}
/*
-#nav ul { background: #069 url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; }
-#nav ul div { background: transparent url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; }
-#nav ul.odd { background: #08c url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; }
-#nav ul.odd div { background: transparent url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; }
+#nav ul { background: #069 url(<%RT->Config->Get('WebImagesURL')%>/css/ctr.gif) no-repeat top right; }
+#nav ul div { background: transparent url(<%RT->Config->Get('WebImagesURL')%>/css/cbr.gif) no-repeat bottom right; }
+#nav ul.odd { background: #08c url(<%RT->Config->Get('WebImagesURL')%>/css/ctr.gif) no-repeat top right; }
+#nav ul.odd div { background: transparent url(<%RT->Config->Get('WebImagesURL')%>/css/cbr.gif) no-repeat bottom right; }
*/
-#nav ul div.wrapper { background: transparent url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; }
-#nav ul div { background: #069 url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; }
-#nav ul.odd div.wrapper { background: transparent url(<%$RT::WebImagesURL%>/css/ctr.gif) no-repeat top right; }
-#nav ul div.odd { background: #08c url(<%$RT::WebImagesURL%>/css/cbr.gif) no-repeat bottom right; }
+#nav ul div.wrapper { background: transparent url(<%RT->Config->Get('WebImagesURL')%>/css/ctr.gif) no-repeat top right; }
+#nav ul div { background: #069 url(<%RT->Config->Get('WebImagesURL')%>/css/cbr.gif) no-repeat bottom right; }
+#nav ul.odd div.wrapper { background: transparent url(<%RT->Config->Get('WebImagesURL')%>/css/ctr.gif) no-repeat top right; }
+#nav ul div.odd { background: #08c url(<%RT->Config->Get('WebImagesURL')%>/css/cbr.gif) no-repeat bottom right; }
Modified: rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/util.js
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/util.js (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/util.js Fri Jan 20 07:32:02 2006
@@ -137,7 +137,7 @@
/* calendar functions */
function openCalWindow(field) {
- var objWindow = window.open('<%$RT::WebPath%>/Helpers/CalPopup.html?field='+field,
+ var objWindow = window.open('<%RT->Config->Get('WebPath')%>/Helpers/CalPopup.html?field='+field,
'RT_Calendar',
'height=235,width=285,scrollbars=1');
objWindow.focus();
Modified: rt/branches/3.7-EXPERIMENTAL/html/Search/Bulk.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Search/Bulk.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Search/Bulk.html Fri Jan 20 07:32:02 2006
@@ -54,7 +54,7 @@
Order => $Order &>
<& /Elements/ListActions, actions => \@results &>
-<form method="post" action="<%$RT::WebPath%>/Search/Bulk.html" enctype="multipart/form-data">
+<form method="post" action="<%RT->Config->Get('WebPath')%>/Search/Bulk.html" enctype="multipart/form-data">
% foreach my $var qw(Query Format OrderBy Order Rows Page) {
<input type="hidden" class="hidden" name="<%$var%>" value="<%$ARGS{$var}%>" />
%}
Modified: rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/Chart
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/Chart (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/Chart Fri Jan 20 07:32:02 2006
@@ -40,7 +40,7 @@
my $query_string = $m->comp('/Elements/QueryString', %ARGS);
</%init>
-<img src="<%$RT::WebPath%>/Search/Chart?<%$query_string|n%>" />
+<img src="<%RT->Config->Get('WebPath')%>/Search/Chart?<%$query_string|n%>" />
<br />
<%$Query%>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html Fri Jan 20 07:32:02 2006
@@ -75,12 +75,12 @@
</form>
</div>
<div align="right">
-<a href="<%$RT::WebPath%>/Search/Bulk.html<%$QueryString%>"><&|/l&>Update multiple tickets</&></a><br />
-<a href="<%$RT::WebPath%>/Search/Results.html<%$QueryString%>"><&|/l&>Bookmarkable link</&></a><br />
-<a href="<%$RT::WebPath%>/Search/Results.tsv<%$QueryString%>"><&|/l&>spreadsheet</&></a> |
+<a href="<%RT->Config->Get('WebPath')%>/Search/Bulk.html<%$QueryString%>"><&|/l&>Update multiple tickets</&></a><br />
+<a href="<%RT->Config->Get('WebPath')%>/Search/Results.html<%$QueryString%>"><&|/l&>Bookmarkable link</&></a><br />
+<a href="<%RT->Config->Get('WebPath')%>/Search/Results.tsv<%$QueryString%>"><&|/l&>spreadsheet</&></a> |
<a href="<%$RSSFeedURL%>"><&|/l&>RSS</&></a> |
-<a href="<%$RT::WebPath%>/Tools/Offline.html<%$ShortQueryString%>"><&|/l&>Work offline</&></a><br />
-<form method="get" action="<%$RT::WebPath%>/Search/Chart.html"><&|/l&>chart</&>
+<a href="<%RT->Config->Get('WebPath')%>/Tools/Offline.html<%$ShortQueryString%>"><&|/l&>Work offline</&></a><br />
+<form method="get" action="<%RT->Config->Get('WebPath')%>/Search/Chart.html"><&|/l&>chart</&>
% @vars = (Query => $Query, Format => $Format, Rows => $Rows, OrderBy => $OrderBy, Order => $Order);
%while (my $var = shift (@vars)) {
<input type="hidden" class="hidden" name="<%$var%>" value="<%shift(@vars)%>" />
Modified: rt/branches/3.7-EXPERIMENTAL/html/SelfService/Elements/GotoTicket
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/SelfService/Elements/GotoTicket (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/SelfService/Elements/GotoTicket Fri Jan 20 07:32:02 2006
@@ -43,4 +43,4 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<form action="<%$RT::WebPath%>/SelfService/Display.html"><input type="submit" class="button" value="<&|/l&>Goto ticket</&>" /> <input size="4" name="id" /></form>
+<form action="<%RT->Config->Get('WebPath')%>/SelfService/Display.html"><input type="submit" class="button" value="<&|/l&>Goto ticket</&>" /> <input size="4" name="id" /></form>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Attachment/dhandler
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Attachment/dhandler (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Attachment/dhandler Fri Jan 20 07:32:02 2006
@@ -78,7 +78,7 @@
$content_type .= ";charset=$enc";
}
- # unless ($RT::TrustMIMEAttachments) {
+ # unless (RT->Config->Get('TrustMIMEAttachments')) {
# $content_type = 'application/octet-stream';
# }
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Create.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Create.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Create.html Fri Jan 20 07:32:02 2006
@@ -50,7 +50,7 @@
current_toptab => "Ticket/Create.html",
Title => loc("Create a new ticket"),
actions => $actions &>
-<form action="<%$RT::WebPath%>/Ticket/Create.html" method="post" enctype="multipart/form-data" name="TicketCreate">
+<form action="<%RT->Config->Get('WebPath')%>/Ticket/Create.html" method="post" enctype="multipart/form-data" name="TicketCreate">
<input type="hidden" class="hidden" name="id" value="new" />
<div id="Ticket-Create-basics">
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/PreviewScrips
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/PreviewScrips (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/PreviewScrips Fri Jan 20 07:32:02 2006
@@ -106,7 +106,7 @@
% }
</ul>
% }
-% if ($RT::PreviewScripMessages) {
+% if (RT->Config->Get('PreviewScripMessages')) {
<textarea cols="80" rows="5">
<%$scrip->ActionObj->TemplateObj->MIMEObj->as_string%>
</textarea>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowAttachments
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowAttachments (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowAttachments Fri Jan 20 07:32:02 2006
@@ -68,7 +68,7 @@
</%PERL>
<li><font size="-2">
-<a href="<%$RT::WebPath%>/Ticket/Attachment/<%$rev->TransactionId%>/<%$rev->Id%>/<%$rev->Filename | u%>">
+<a href="<%RT->Config->Get('WebPath')%>/Ticket/Attachment/<%$rev->TransactionId%>/<%$rev->Id%>/<%$rev->Filename | u%>">
<&|/l, $rev->CreatedAsString, $size, $rev->CreatorObj->Name &>[_1] ([_2]) by [_3]</&>
</a>
</font></li>
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowDependencies
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowDependencies (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowDependencies Fri Jan 20 07:32:02 2006
@@ -46,14 +46,14 @@
<&|/l&>Depends on</&>:<br />
% while (my $Link = $Ticket->DependsOn->Next) {
% my $member = $Link->TargetObj;
-<a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%>
+<a href="<%RT->Config->Get('WebPath')%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%>
[<%$member->Status%>]
<br />
% }
<&|/l&>Depended on by</&>:<br />
% while (my $Link = $Ticket->DependedOnBy->Next) {
% my $member = $Link->TargetObj;
-<a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%>
+<a href="<%RT->Config->Get('WebPath')%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%>
[<%$member->Status%>]
<br />
% }
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory Fri Jan 20 07:32:02 2006
@@ -136,7 +136,7 @@
}
-my $OldestFirst = $RT::OldestTransactionsFirst? 1: 0;
+my $OldestFirst = RT->Config->Get('OldestTransactionsFirst')? 1: 0;
$OldestFirst = $session{'CurrentUser'}->UserObj->Preferences( OldestTransactionsFirst => $OldestFirst );
$OldestFirst = $OldestFirst? 'ASC': 'DESC';
$Transactions->OrderByCols( { FIELD => 'Created',
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMembers
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMembers (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowMembers Fri Jan 20 07:32:02 2006
@@ -47,7 +47,7 @@
<ul>
% while (my $link = $members->Next) {
% my $member= $link->BaseObj;
-<li><a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: <%$member->Subject%> [<%loc($member->Status)%>]<br />
+<li><a href="<%RT->Config->Get('WebPath')%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: <%$member->Subject%> [<%loc($member->Status)%>]<br />
% if ($depth < 8) {
<&/Ticket/Elements/ShowMembers, Ticket => $member, depth => ($depth+1) &>
% }
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowTransactionAttachments Fri Jan 20 07:32:02 2006
@@ -74,7 +74,7 @@
# If it's text
if ( $message->ContentType =~ m{^(text|message)}i
- && (!$RT::MaxInlineBody || $size <= $RT::MaxInlineBody) )
+ && (!RT->Config->Get('MaxInlineBody') || $size <= RT->Config->Get('MaxInlineBody')) )
{
if (
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Reminders.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Reminders.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Reminders.html Fri Jan 20 07:32:02 2006
@@ -48,7 +48,7 @@
Ticket => $Ticket,
current_tab => "Ticket/Reminders.html?id=".$Ticket->Id,
Title => loc("Reminders for ticket #[_1]", $Ticket->Id) &>
-<form action="<%$RT::WebPath%>/Ticket/Reminders.html" method="post">
+<form action="<%RT->Config->Get('WebPath')%>/Ticket/Reminders.html" method="post">
<&|/Widgets/TitleBox, title => loc("Reminders"),
title_class=> 'inverse',
color => "#666699" &>
Modified: rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Members.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Members.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Members.html Fri Jan 20 07:32:02 2006
@@ -52,7 +52,7 @@
-<form action="<%$RT::WebPath%>/User/Groups/Members.html" method="post">
+<form action="<%RT->Config->Get('WebPath')%>/User/Groups/Members.html" method="post">
<input type="hidden" class="hidden" name="id" value="<%$Group->Id%>" />
<table width="100%">
<tr>
Modified: rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Modify.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Modify.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/User/Groups/Modify.html Fri Jan 20 07:32:02 2006
@@ -53,7 +53,7 @@
<& /Elements/ListActions, actions => \@results &>
-<form action="<%$RT::WebPath%>/User/Groups/Modify.html" method="post">
+<form action="<%RT->Config->Get('WebPath')%>/User/Groups/Modify.html" method="post">
%unless ($Group->Id) {
<input type="hidden" class="hidden" name="id" value="new" />
Modified: rt/branches/3.7-EXPERIMENTAL/html/User/Prefs.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/User/Prefs.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/User/Prefs.html Fri Jan 20 07:32:02 2006
@@ -50,7 +50,7 @@
<& /Elements/ListActions, actions => \@results &>
-<form action="<%$RT::WebPath%>/User/Prefs.html" method="post">
+<form action="<%RT->Config->Get('WebPath')%>/User/Prefs.html" method="post">
<input type="hidden" class="hidden" name="id" value="<%$UserObj->Id%>" />
<table width="100%" border="0">
@@ -101,7 +101,7 @@
</&>
</td>
<td valign="top" class="boxcontainer">
-% unless ($RT::WebExternalAuth and !$RT::WebFallbackToInternalAuth) {
+% unless (RT->Config->Get('WebExternalAuth') and !RT->Config->Get('WebFallbackToInternalAuth')) {
<&| /Widgets/TitleBox, title => loc('Password') &>
<table>
<tr>
Modified: rt/branches/3.7-EXPERIMENTAL/html/autohandler
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/autohandler (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/autohandler Fri Jan 20 07:32:02 2006
@@ -48,7 +48,7 @@
# Roll back any dangling transactions from a previous failed connection
$RT::Handle->ForceRollback() if $RT::Handle->TransactionDepth;
-if ($RT::StatementLog) {
+if (RT->Config->Get('StatementLog')) {
$RT::Handle->ClearSQLStatementLog;
$RT::Handle->LogSQLStatements(1);
}
@@ -97,12 +97,12 @@
$r->content_type("text/html; charset=utf-8");
# If it's a noauth file, don't ask for auth.
-if ( $m->base_comp->path =~ $RT::WebNoAuthRegex ) {
+if ( $m->base_comp->path =~ RT->Config->Get('WebNoAuthRegex') ) {
$m->call_next( %ARGS );
$m->abort;
}
# If RT is configured for external auth, let's go through and get REMOTE_USER
-elsif ( $RT::WebExternalAuth ) {
+elsif ( RT->Config->Get('WebExternalAuth') ) {
# do we actually have a REMOTE_USER equivlent?
if ( RT::Interface::Web::WebCanonicalizeInfo() ) {
@@ -110,9 +110,9 @@
my $orig_user = $user;
$user = RT::Interface::Web::WebCanonicalizeInfo();
- my $load_method = $RT::WebExternalGecos ? 'LoadByGecos' : 'Load';
+ my $load_method = RT->Config->Get('WebExternalGecos') ? 'LoadByGecos' : 'Load';
- if ($^O eq 'MSWin32' and $RT::WebExternalGecos) {
+ if ($^O eq 'MSWin32' and RT->Config->Get('WebExternalGecos')) {
my $NodeName = Win32::NodeName();
$user =~ s/^\Q$NodeName\E\\//i;
}
@@ -120,12 +120,12 @@
$session{'CurrentUser'} = RT::CurrentUser->new();
$session{'CurrentUser'}->$load_method($user);
- if ( $RT::WebExternalAuto && !$session{'CurrentUser'}->Id ) {
+ if ( RT->Config->Get('WebExternalAuto') && !$session{'CurrentUser'}->Id ) {
# Create users on-the-fly
my $UserObj = RT::User->new( $RT::SystemUser );
my ($val, $msg) = $UserObj->Create(
- %{ref($RT::AutoCreate) ? $RT::AutoCreate : {}},
+ %{ref(RT->Config->Get('AutoCreate')) ? RT->Config->Get('AutoCreate') : {}},
Name => $user,
Gecos => $user,
);
@@ -158,7 +158,7 @@
else {
# we failed to successfully create the user. abort abort abort.
delete $session{'CurrentUser'};
- $m->abort unless $RT::WebFallbackToInternalAuth;
+ $m->abort unless RT->Config->Get('WebFallbackToInternalAuth');
$m->comp('/Elements/Login', %ARGS,
Error=> loc('Cannot create user: [_1]', $msg));
}
@@ -167,7 +167,7 @@
unless ( $session{'CurrentUser'}->Id ) {
delete $session{'CurrentUser'};
$user = $orig_user;
- if ( $RT::WebExternalOnly ) {
+ if ( RT->Config->Get('WebExternalOnly') ) {
$m->comp('/Elements/Login', %ARGS,
Error=> loc('You are not an authorized user'));
$m->abort();
@@ -246,7 +246,7 @@
$m->comp( '/Elements/Footer', %ARGS );
-if ($RT::StatementLog) {
+if (RT->Config->Get('StatementLog')) {
my @log = $RT::Handle->SQLStatementLog;
$RT::Handle->ClearSQLStatementLog;
for my $stmt (@log) {
@@ -258,7 +258,7 @@
# Older DBIx-SB
$duration = $bind;
}
- $RT::Logger->log( level => $RT::StatementLog,
+ $RT::Logger->log( level => RT->Config->Get('StatementLog'),
message => "SQL(".sprintf("%.2f",$duration)."s): $sql;" . (@bind ? " [ bound values: @{[map{qq|'$_'|} @bind]} ]" : "")
);
}
Modified: rt/branches/3.7-EXPERIMENTAL/lib/t/regression/03web_compiliation_errors.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/t/regression/03web_compiliation_errors.t (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/t/regression/03web_compiliation_errors.t Fri Jan 20 07:32:02 2006
@@ -18,7 +18,7 @@
RT::LoadConfig();
# get the top page
-my $url = "http://localhost:".$RT::WebPort.$RT::WebPath."/";
+my $url = "http://localhost:". RT->Config->Get('WebPort') . RT->Config->Get('WebPath') ."/";
diag "Base URL is '$url'" if $ENV{TEST_VERBOSE};
$agent->get($url);
Modified: rt/branches/3.7-EXPERIMENTAL/lib/t/regression/04send_email.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/t/regression/04send_email.t (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/t/regression/04send_email.t Fri Jan 20 07:32:02 2006
@@ -154,7 +154,7 @@
# we need to swap out SendMessage to test the new things we care about;
&iso8859_redef_sendmessage;
-RT->Config->Set(EmailOutputEncoding => 'iso-8859-1');
+RT->Config->Set( EmailOutputEncoding => 'iso-8859-1' );
# create an iso 8859-1 ticket
@scrips_fired = ();
@@ -359,8 +359,8 @@
# {{{ test a message containing a russian subject and NO content type
-unshift (@RT::EmailInputEncodings, 'koi8-r');
-$RT::EmailOutputEncoding = 'koi8-r';
+RT->Config->Set( EmailInputEncodings => 'koi8-r', RT->Config->Get('EmailInputEncodings') );
+RT->Config->Set( EmailOutputEncoding => 'koi8-r' );
$content = file_content("$RT::BasePath/lib/t/data/russian-subject-no-content-type");
$parser->ParseMIMEEntityFromScalar($content);
Modified: rt/branches/3.7-EXPERIMENTAL/lib/t/regression/09-api-date.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/t/regression/09-api-date.t (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/t/regression/09-api-date.t Fri Jan 20 07:32:02 2006
@@ -20,7 +20,7 @@
# set timezone in all places to UTC
$RT::SystemUser->UserObj->__Set(Field => 'Timezone', Value => 'UTC')
if $RT::SystemUser->UserObj->Timezone;
- $RT::Timezone = 'UTC';
+ RT->Config->Set( Timezone => 'UTC' );
}
{
@@ -48,7 +48,7 @@
is($date->Timezone, 'UTC', "the deafult value is always UTC");
is($date->Timezone('server'), 'UTC', "wasn't changed");
- $RT::Timezone = 'Africa/Ouagadougou';
+ RT->Config->Set( Timezone => 'Africa/Ouagadougou' );
is($date->Timezone('server'),
'Africa/Ouagadougou',
"timezone of the RT server was changed");
@@ -66,7 +66,7 @@
"in user context returns timezone of the server if user's one is not defined");
is($date->Timezone, 'UTC', "the deafult value is always UTC");
- $RT::Timezone = '';
+ RT->Config->Set( Timezone => '' );
is($date->Timezone, 'UTC', "dropped all timzones to UTC");
is($date->Timezone('user'),
'UTC',
@@ -75,7 +75,7 @@
'UTC',
"timezone of the server is not defined so UTC");
- $RT::Timezone = 'UTC';
+ RT->Config->Set( Timezone => 'UTC' );
}
{
@@ -268,17 +268,17 @@
my $date = RT::Date->new($current_user);
is($date->AsString, "Not set", "AsString returns 'Not set'");
- $RT::DateTimeFormat = '';
+ RT->Config->Set( DateTimeFormat => '');
$date->Unix(1);
is($date->AsString, 'Thu Jan 01 00:00:01 1970', "correct string");
is($date->AsString(Date => 0), '00:00:01', "correct string");
is($date->AsString(Time => 0), 'Thu Jan 01 1970', "correct string");
- $RT::DateTimeFormat = 'RFC2822';
+ RT->Config->Set( DateTimeFormat => 'RFC2822' );
$date->Unix(1);
is($date->AsString, 'Thu, 1 Jan 1970 00:00:01 +0000', "correct string");
- $RT::DateTimeFormat = { Format => 'RFC2822', Seconds => 0 };
+ RT->Config->Set( DateTimeFormat => { Format => 'RFC2822', Seconds => 0 } );
$date->Unix(1);
is($date->AsString, 'Thu, 1 Jan 1970 00:00 +0000', "correct string");
is($date->AsString(Seconds => 1), 'Thu, 1 Jan 1970 00:00:01 +0000', "correct string");
Modified: rt/branches/3.7-EXPERIMENTAL/lib/t/regression/19-rtname.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/t/regression/19-rtname.t (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/t/regression/19-rtname.t Fri Jan 20 07:32:02 2006
@@ -11,27 +11,27 @@
use RT::Interface::Email;
# normal use case, regexp set to rtname
-RT->Config->Get(rtname => "site");
-$RT::EmailSubjectTagRegex = qr/RT->Config->Get('rtname')/ ;
-RT->Config->Get(rtname => undef);
+RT->Config->Set( rtname => "site" );
+RT->Config->Set( EmailSubjectTagRegex => qr/site/ );
+RT->Config->Set( rtname => undef );
is(RT::Interface::Email::ParseTicketId("[site #123] test"), 123);
is(RT::Interface::Email::ParseTicketId("[othersite #123] test"), undef);
# oops usecase, where the regexp is scragged
-RT->Config->Get(rtname => "site");
-$RT::EmailSubjectTagRegex = undef;
+RT->Config->Set( rtname => "site" );
+RT->Config->Set( EmailSubjectTagRegex => undef );
is(RT::Interface::Email::ParseTicketId("[site #123] test"), 123);
is(RT::Interface::Email::ParseTicketId("[othersite #123] test"), undef);
# set to a simple regexp. NOTE: we no longer match "site"
-RT->Config->Get(rtname => "site");
-$RT::EmailSubjectTagRegex = qr/newsite/;
+RT->Config->Set( rtname => "site");
+RT->Config->Set( EmailSubjectTagRegex => qr/newsite/);
is(RT::Interface::Email::ParseTicketId("[site #123] test"), undef);
is(RT::Interface::Email::ParseTicketId("[newsite #123] test"), 123);
# set to a more complex regexp
-RT->Config->Get(rtname => "site");
-$RT::EmailSubjectTagRegex = qr/newsite||site/;
+RT->Config->Set( rtname => "site" );
+RT->Config->Set( EmailSubjectTagRegex => qr/newsite|site/ );
is(RT::Interface::Email::ParseTicketId("[site #123] test"), 123);
is(RT::Interface::Email::ParseTicketId("[newsite #123] test"), 123);
is(RT::Interface::Email::ParseTicketId("[othersite #123] test"), undef);
Modified: rt/branches/3.7-EXPERIMENTAL/sbin/rt-clean-sessions.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/sbin/rt-clean-sessions.in (original)
+++ rt/branches/3.7-EXPERIMENTAL/sbin/rt-clean-sessions.in Fri Jan 20 07:32:02 2006
@@ -62,9 +62,9 @@
RT::LoadConfig();
if( $opt{'debug'} ) {
- $RT::LogToScreen = 'debug';
+ RT->Config->Set( LogToScreen => 'debug' );
} else {
- $RT::LogToScreen = undef;
+ RT->Config->Set( LogToScreen => undef );
}
RT::ConnectToDatabase();
@@ -72,9 +72,9 @@
require RT::Interface::Web::Session;
-if( int($RT::AutoLogoff) || $opt{'older'} ) {
+if( $opt{'older'} or my $alogoff = int RT->Config->Get('AutoLogoff') ) {
my $min;
- foreach ($RT::AutoLogoff*60, $opt{'older'}) {
+ foreach ($alogoff*60, $opt{'older'}) {
next unless $_;
$min = $_ unless $min;
$min = $_ if $_ < $min;
More information about the Rt-commit
mailing list