[Rt-commit] r6986 - rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements

ruz at bestpractical.com ruz at bestpractical.com
Tue Feb 13 08:44:21 EST 2007


Author: ruz
Date: Tue Feb 13 08:44:20 2007
New Revision: 6986

Modified:
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/Logo

Log:
* add $Name arg to logo element
* rename show_name into ShowName

Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/Logo
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/Logo	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/Logo	Tue Feb 13 08:44:20 2007
@@ -48,10 +48,17 @@
     src="<%RT->Config->Get('WebImagesURL')%>/bplogo.gif"
     alt="<% loc("Best Practical Solutions, LLC corporate logo") %>"
     width="177" height="33" /></a>
-% if ( $show_name ) {
-    <span class="rtname"><% loc("RT for [_1]", RT->Config->Get('rtname')) %></span>
+% if ( $ShowName ) {
+    <span class="rtname"><% $Name || loc("RT for [_1]", RT->Config->Get('rtname')) %></span>
 % }
 </div>
+<%INIT>
+if ( exists $ARGS{'show_name'} ) {
+    $RT::Logger->warn('show_name argument was renamed, use ShowName');
+    $ShowName = delete $ARGS{'show_name'};
+}
+</%INIT>
 <%ARGS>
-$show_name => 1
+$ShowName => 1
+$Name => undef
 </%ARGS>


More information about the Rt-commit mailing list