r50372 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50371‎ | r50372 | r50373 >
Date:17:24, 9 May 2009
Author:thomasv
Status:ok
Tags:
Comment:
minor
Modified paths:
  • /trunk/extensions/ProofreadPage/proofread.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/proofread.js
@@ -741,7 +741,7 @@
742742 var footer = form.elements["footerTextbox"];
743743 if(header){
744744 var h = header.value.replace(/(\s*(\r?\n|\r))+$/, '');
745 - if(h) h = "<noinclude>{{PageQuality|"+self.proofreadpage_quality+"|"+wgUserName+"}}"+h+"\n\n\n</noinclude>";
 745+ if(h) h = "<noinclude>{{PageQuality|"+self.proofreadpage_quality+"|"+self.proofreadpage_username+"}}"+h+"\n\n\n</noinclude>";
746746 var f = footer.value;
747747 if(f) f = "<noinclude>\n"+f+"</noinclude>";
748748 var ph = header.parentNode;
@@ -829,6 +829,7 @@
830830 function pr_add_quality(form,value){
831831
832832 self.proofreadpage_quality = value;
 833+ self.proofreadpage_username = wgUserName;
833834 var text="";
834835 switch(value){
835836 case 0: text = proofreadPageMessageQuality0; break;

Status & tagging log