mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 08:25:03 +02:00
Add a fallback site title to avoid showing undefined as title
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user