From 98f4abc0db6d55b9e6471bff1068d540f1b68d4b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 12 Mar 2018 11:07:59 +0100 Subject: [PATCH] Add a fallback site title to avoid showing undefined as title --- api/js/framework/fw_base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/framework/fw_base.js b/api/js/framework/fw_base.js index bb576576a5..e2c6374ce4 100644 --- a/api/js/framework/fw_base.js +++ b/api/js/framework/fw_base.js @@ -892,7 +892,8 @@ var fw_base = (function(){ "use strict"; return Class.extend( } this.tabsUi.setAppHeader(this.activeApp.app_header); - var default_title = egw.config('site_title', 'phpgwapi') + ' ['+this.activeApp.displayName+']'; + var default_title = (egw.config('site_title', 'phpgwapi') ? egw.config('site_title', 'phpgwapi') : "EGroupware") + + ' ['+this.activeApp.displayName+']';; document.title = this.activeApp.website_title || default_title; }