mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-23 18:30:06 +00:00
Fallback to dbname if source title doesn't exist
This shouldn't happen regularly, since the source should always have a title through a wg* variable in LocalSettings.php but in cases where that is not set up correctly, or is missing for whatever reason, the system should always fall back to displaying the name of the source, if the title doesn't exist. Bug: T164112 Change-Id: I94074adc260a5caf55ca21578fd7071b3323a5e6
This commit is contained in:
parent
33ea210dc9
commit
f05131a8ef
|
@ -166,9 +166,9 @@
|
|||
mw.echo.dm.SourcePagesModel.prototype.setSourcePagesDetails = function ( source, details ) {
|
||||
var i, page;
|
||||
this.sources[ source ] = {
|
||||
title: details.source.title,
|
||||
title: details.source.title || source,
|
||||
base: details.source.base,
|
||||
totalCount: details.totalCount,
|
||||
totalCount: details.totalCount || 0,
|
||||
pages: {}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue