[Rt-commit] rt branch, master, updated. rt-3.9.7-1053-ge840186

? sunnavy sunnavy at bestpractical.com
Mon Jan 3 00:48:58 EST 2011


The branch, master has been updated
       via  e8401860c0af8f57d92ab9102689c174f19e6399 (commit)
      from  7a9822cbe268f8017151654f786e6e751d23b9f4 (commit)

Summary of changes:
 share/html/Elements/Header |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit e8401860c0af8f57d92ab9102689c174f19e6399
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Dec 29 15:18:45 2010 -0500

    Make sure we have an RT::System object before using it - #16348
    
    This ensures things like Install Mode don't break when they look for the
    UserCSS before a database exists.

diff --git a/share/html/Elements/Header b/share/html/Elements/Header
index 34a3ac7..17aeaf3 100755
--- a/share/html/Elements/Header
+++ b/share/html/Elements/Header
@@ -81,7 +81,7 @@
 
 <!-- Site CSS from theme editor -->
 <style type="text/css" media="all" id="sitecss">
-% if (my $attr = RT->System->FirstAttribute('UserCSS')) {
+% if (blessed(RT->System) and my $attr = RT->System->FirstAttribute('UserCSS')) {
 <% $attr->Content |n %>
 % }
 </style>
@@ -100,6 +100,8 @@
 % }
 <div id="header"><h1><% $Title %></h1></div>
 <%INIT>
+use Scalar::Util qw(blessed);
+
 $r->headers_out->{'Pragma'} = 'no-cache';
 $r->headers_out->{'Cache-control'} = 'no-cache';
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list