Add a fallback site title to avoid showing undefined as title

This commit is contained in:
Hadi Nategh 2018-03-12 11:07:59 +01:00
parent ae8913b1ff
commit 98f4abc0db

View File

@ -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;
}