* Reverting back to 1.115, not inserting {{ and }} automatically means that the
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 2 Sep 2005 18:33:58 +0000 (18:33 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 2 Sep 2005 18:33:58 +0000 (18:33 +0000)
  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

includes/Image.php

index bbf1d42..2d0aa06 100644 (file)
@@ -1273,7 +1273,7 @@ class Image
 
                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" .
@@ -1283,7 +1283,7 @@ class Image
                        if ( $license != '' ) {
                                $filedesc = $desc == '' ? '' : '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $desc . "\n";
                                 $textdesc = $filedesc . 
-                                        '== ' . wfMsg ( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n"; 
+                                        '== ' . wfMsg ( 'license' ) . " ==\n$license\n";       
                        } else {
                                $textdesc = $desc;
                        }