Permalink
Browse files

FfD always notified user (fix by Timotheus Canens); Tweak to config w…

…ording.
  • Loading branch information...
Amalthea committed Jun 2, 2011
1 parent 169c03f commit baabb2bec57afaf4ea40a4aeda7ab5e0c9fbb067
Showing with 20 additions and 18 deletions.
  1. +1 −1 modules/twinkleconfig.js
  2. +19 −17 modules/twinklexfd.js
View
@@ -578,7 +578,7 @@ Twinkle.config.sections = [
{
name: "welcomeHeading",
label: "Section heading to use for welcomes",
helptip: "This only works if headings are enabled.",
helptip: "Only has an effect if headings are enabled, and the heading is not part of the template.",
type: "string"
},
{
View
@@ -807,24 +807,26 @@ Twinkle.xfd.callbacks = {
wikipedia_page.load(Twinkle.xfd.callbacks.ffd.todaysList);
// Notification to first contributor
var usertalkpage = new Wikipedia.page('User talk:' + initialContrib, "Notifying initial contributor (" + initialContrib + ")");
var notifytext = "\n{{subst:idw|1=" + mw.config.get('wgTitle') + "}}";
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:FFD|files for deletion]] of [[" + mw.config.get('wgPageName') + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
case 'yes':
usertalkpage.setWatchlist(true);
break;
case 'no':
usertalkpage.setWatchlistFromPreferences(false);
break;
default:
usertalkpage.setWatchlistFromPreferences(true);
break;
if(params.usertalk) {
var usertalkpage = new Wikipedia.page('User talk:' + initialContrib, "Notifying initial contributor (" + initialContrib + ")");
var notifytext = "\n{{subst:idw|1=" + mw.config.get('wgTitle') + "}}";
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:FFD|files for deletion]] of [[" + mw.config.get('wgPageName') + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
case 'yes':
usertalkpage.setWatchlist(true);
break;
case 'no':
usertalkpage.setWatchlistFromPreferences(false);
break;
default:
usertalkpage.setWatchlistFromPreferences(true);
break;
}
usertalkpage.setFollowRedirect(true);
usertalkpage.append();
}
usertalkpage.setFollowRedirect(true);
usertalkpage.append();
},
taggingImage: function(pageobj) {
var text = pageobj.getPageText();

0 comments on commit baabb2b

Please sign in to comment.