[Rt-commit] r4486 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Fri Feb 3 18:41:37 EST 2006
Author: ruz
Date: Fri Feb 3 18:41:32 2006
New Revision: 4486
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Elements/ShowSearch
Log:
r1661 at cubic-pc: cubic | 2006-02-04 02:37:57 +0300
* config handling fixes
* allow __Web(Path|Base|BaseURL)__ in format string
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/ShowSearch
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/ShowSearch (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/ShowSearch Fri Feb 3 18:41:32 2006
@@ -82,7 +82,7 @@
my $rows = $user->Preferences('SummaryRows', RT->Config->Get('DefaultSummaryRows'));
$SearchArg->{'Query'} =~ s/__CurrentUser__/$session{'CurrentUser'}->Id/ge;
-$SearchArg->{'Format'} =~ s/__WebPath__/RT->Config->Get('WebPath')/g;
+$SearchArg->{'Format'} =~ s/__(Web(?:Path|Base|BaseURL))__/RT->Config->Get($1)/ge;
$SearchArg->{'Format'} =~ s/__loc\(["']?(\w+)["']?\)__/loc("$1")/ge;
my $QueryString = '?' . $m->comp('/Elements/QueryString',
%$SearchArg);
More information about the Rt-commit
mailing list