mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Merge "Use short license name from template if we don't recognize it"
This commit is contained in:
commit
5d7e4f8198
|
@ -546,15 +546,10 @@
|
|||
* @param {string} filePageUrl URL of the file description page
|
||||
*/
|
||||
MPP.setLicense = function ( license, filePageUrl ) {
|
||||
var message, shortName, url, isCc;
|
||||
var shortName, url, isCc;
|
||||
|
||||
if ( license ) {
|
||||
message = 'multimediaviewer-license-' + ( license.internalName || '' );
|
||||
if ( mw.messages.exists( message ) ) {
|
||||
shortName = mw.message( message ).text();
|
||||
} else {
|
||||
shortName = mw.message( 'multimediaviewer-license-default' ).text();
|
||||
}
|
||||
shortName = license.getShortName();
|
||||
url = license.deedUrl || filePageUrl;
|
||||
isCc = license.isCc();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue