Permalink
Browse files

MINOR Default app title when SiteConfig object is not present (fixes #…

  • Loading branch information...
1 parent 2db0be6 commit 3572b31a94c3d38bd95a47cd952318212f48486e @chillu chillu committed Apr 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 admin/code/LeftAndMain.php
  2. +1 −1 admin/templates/Includes/LeftAndMain_Menu.ss
@@ -1207,7 +1207,7 @@ function SiteConfig() {
*
* @var String
*/
- static $application_name = 'SilverStripe CMS';
+ static $application_name = 'SilverStripe';
/**
* @param String $name
@@ -4,7 +4,7 @@
<a href="http://www.silverstripe.org/" target="_blank" title="SilverStripe (Version - $CMSVersion)">
SilverStripe <% if CMSVersion %><abbr class="version">$CMSVersion</abbr><% end_if %>
</a>
- <span>$SiteConfig.Title</span>
+ <span><% if SiteConfig %>$SiteConfig.Title<% else %>$ApplicationName<% end_if %></span>
</div>
<div class="cms-login-status">

0 comments on commit 3572b31

Please sign in to comment.