Permalink
Browse files

Fix /recent blanking bug

See
https://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Articles_for_cr
eation/Helper_script#Bug.21.3F.3F and the commit that did it (tsk tsk,
@wikipedia-mabdul ;) ):
2aab646
d142d
  • Loading branch information...
1 parent 1fd58b6 commit 79afc85268e603cc171ed6f6eff5704df21554c1 @theopolisme theopolisme committed Sep 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/submissions.js
View
@@ -604,7 +604,7 @@ function afcHelper_act(action) {
var lastentry = recenttext.toLowerCase().lastIndexOf("\{\{afc contrib");
var firstentry = recenttext.toLowerCase().indexOf("\{\{afc contrib");
recenttext = recenttext.substring(0, lastentry);
- recenttext = recenttext.substring(0, firstentry);
+ recenttext = recenttext.substring(0, firstentry) + newentry + recenttext.substring(firstentry);
afcHelper_editPage("Wikipedia:Articles for creation/recent", recenttext, 'Updating recent AFC creations', false);
var talktext = "";

0 comments on commit 79afc85

Please sign in to comment.