Add a fallback site title to avoid showing undefined as title

This commit is contained in:
Hadi Nategh 2018-03-12 12:16:50 +01:00
parent 163c87db82
commit 72bc17abf7

View File

@ -1003,7 +1003,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;
}