license selector can be used to insert arbitary text, not just templates,
this doesn't break it either since you just have to change the entries in
MediaWiki:Licenses from e.g:
* GFDL|GNU Free Documentation License
to:
* {{GFDL}}|GNU Free Documentation License
to get the same functionality as before
if ( $wgUseCopyrightUpload ) {
if ( $license != '' ) {
- $licensetxt = '== ' . wfMsg( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
+ $licensetxt = '== ' . wfMsg( 'license' ) . " ==$license\n";
}
$textdesc = '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $desc . "\n" .
'== ' . wfMsg ( 'filestatus' ) . " ==\n" . $copyStatus . "\n" .
if ( $license != '' ) {
$filedesc = $desc == '' ? '' : '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $desc . "\n";
$textdesc = $filedesc .
- '== ' . wfMsg ( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
+ '== ' . wfMsg ( 'license' ) . " ==\n$license\n";
} else {
$textdesc = $desc;
}