undefined variable error fix
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 24 Jul 2009 10:32:17 +0000 (10:32 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 24 Jul 2009 10:32:17 +0000 (10:32 +0000)
includes/specials/SpecialUpload.php

index 733d22a..6f5a137 100644 (file)
@@ -1070,6 +1070,7 @@ wgUploadAutoFill = {$autofill};
        static function getInitialPageText( $comment='', $license='', $copyStatus='', $source='' ) {
                global $wgUseCopyrightUpload;
                if ( $wgUseCopyrightUpload ) {
+                       $licensetxt = '';
                        if ( $license != '' ) {
                                $licensetxt = '== ' . wfMsgForContent( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
                        }