about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-27 22:13:49 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-27 15:13:49 +0200
commitbb96ba13cf78c0bee1919c32e61bf0644c89a209 (patch)
tree172a4bd0a097c7772050fd40dfe2a83207d9a12c /app/helpers
parent5bf4838e2f77430a0f3f72a6d9eb431930a03abd (diff)
Fallback to site_hostname when site_title is empty (#4394)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/instance_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/instance_helper.rb b/app/helpers/instance_helper.rb
index a1c3c3521..70027cca9 100644
--- a/app/helpers/instance_helper.rb
+++ b/app/helpers/instance_helper.rb
@@ -2,7 +2,7 @@
 
 module InstanceHelper
   def site_title
-    Setting.site_title.to_s
+    Setting.site_title.presence || site_hostname
   end
 
   def site_hostname