[Rt-commit] r5166 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu May 4 21:28:19 EDT 2006
Author: ruz
Date: Thu May 4 21:28:18 2006
New Revision: 5166
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Prefs/Elements/Tabs
Log:
r2820 at cubic-pc: cubic | 2006-05-05 05:33:33 +0400
* indent
Modified: rt/branches/3.7-EXPERIMENTAL/html/Prefs/Elements/Tabs
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Prefs/Elements/Tabs (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Prefs/Elements/Tabs Thu May 4 21:28:18 2006
@@ -51,15 +51,19 @@
<%INIT>
my $tabs;
-unless ($Searches) {
- $Searches = [$m->comp("/Search/Elements/SearchesForObject", Object => RT::System->new($session{'CurrentUser'}))];
-}
+$Searches ||= [$m->comp("/Search/Elements/SearchesForObject", Object => RT::System->new($session{'CurrentUser'}))];
+
+$tabs->{a} = {
+ title => loc('Quick search'),
+ path => 'Prefs/Quicksearch.html',
+};
-$tabs->{a} = { title => loc('Quick search'),
- path => 'Prefs/Quicksearch.html' };
for my $search (@$Searches) {
- $tabs->{$search->[0]} = { title => $search->[0],
- path => "Prefs/Search.html?".$m->comp('/Elements/QueryString', name => ref($search->[1]).'-'.$search->[1]->Id) };
+ $tabs->{ $search->[0] } = {
+ title => $search->[0],
+ path => "Prefs/Search.html?"
+ .$m->comp('/Elements/QueryString', name => ref($search->[1]).'-'.$search->[1]->Id),
+ };
}
</%INIT>
<%ARGS>
More information about the Rt-commit
mailing list