Commit c19f31fd authored by Ostrzyciel's avatar Ostrzyciel

Don't add newlines before {{Information}}

parent fd4b825e
......@@ -784,7 +784,7 @@
if (this.getTitle().getMain().toLowerCase().endsWith('.svg'))
wikiText += '{{Wektorowa}}\n\n';
if ( mw.UploadWizard.config.autoAdd.wikitext !== undefined ) {
if ( mw.UploadWizard.config.autoAdd.wikitext !== undefined && mw.UploadWizard.config.autoAdd.wikitext !== "" ) {
wikiText += mw.UploadWizard.config.autoAdd.wikitext + '\n\n';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment