[Rt-commit] r6906 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin: Global

ruz at bestpractical.com ruz at bestpractical.com
Fri Feb 2 17:01:58 EST 2007


Author: ruz
Date: Fri Feb  2 17:01:58 2007
New Revision: 6906

Modified:
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Global/MyRT.html
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Users/MyRT.html

Log:
* convert to new config style

Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Global/MyRT.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Global/MyRT.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Global/MyRT.html	Fri Feb  2 17:01:58 2007
@@ -16,7 +16,7 @@
 <%init>
 my @actions;
 
-my @items = map { [ "component-$_", $_ ] } sort @{$RT::HomepageComponents};
+my @items = map { [ "component-$_", $_ ] } sort RT->Config->Get('HomepageComponents');
 my $sys = RT::System->new( $session{'CurrentUser'} );
 # XXX: put this in savedsearches_to_portlet_items
 for ( $m->comp( "/Search/Elements/SearchesForObject",

Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Users/MyRT.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Users/MyRT.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Admin/Users/MyRT.html	Fri Feb  2 17:01:58 2007
@@ -36,7 +36,7 @@
 my ($default_portlets) = RT::System->new($session{'CurrentUser'})->Attributes->Named('HomepageSettings');
 my $portlets  = $UserObj->Preferences('HomepageSettings', $default_portlets ? $default_portlets->Content  : {});
 
-my %allowed_components = map {$_ => 1} @{$RT::HomepageComponents};
+my %allowed_components = map {$_ => 1} RT->Config->Get('HomepageComponents');
 my @items;
 
 push @items, map {["component-$_", $_]} sort keys %allowed_components;


More information about the Rt-commit mailing list