From 5350554d224d67ec98faf952c9d31e66bd446a82 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Fri, 1 Dec 2006 18:39:43 +0000 Subject: [PATCH] (bug 8024) Introduce "send me copies of emails I send to others" preference --- RELEASE-NOTES | 4 ++-- includes/SpecialEmailuser.php | 2 +- includes/SpecialPreferences.php | 2 ++ includes/User.php | 1 + languages/messages/MessagesEn.php | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index bf49107b75..394e7ba708 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -229,8 +229,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php * Add AuthPluginSetup hook to override $wgAuth after configuration * Fix regression in authentication hook auto-creation on login -* (bug 8110) Allow spaces in ISBNs. - +* (bug 8110) Allow spaces in ISBNs +* (bug 8024) Introduce "send me copies of emails I send to others" preference == Languages updated == diff --git a/includes/SpecialEmailuser.php b/includes/SpecialEmailuser.php index 16270b1778..38745a3708 100644 --- a/includes/SpecialEmailuser.php +++ b/includes/SpecialEmailuser.php @@ -123,7 +123,7 @@ class EmailUserForm {
-" . wfCheckLabel( $emc, 'wpCCMe', 'wpCCMe' ) . "
+" . wfCheckLabel( $emc, 'wpCCMe', 'wpCCMe', $wgUser->getBoolOption( 'ccmeonemails' ) ) . "
\n" ); diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 39f2fc57b4..29614a8089 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -486,6 +486,7 @@ class PreferencesForm { $this->mUsedToggles[ 'enotifusertalkpages' ] = true; $this->mUsedToggles[ 'enotifminoredits' ] = true; $this->mUsedToggles[ 'enotifrevealaddr' ] = true; + $this->mUsedToggles[ 'ccmeonemails' ] = true; $this->mUsedToggles[ 'uselivepreview' ] = true; # Enotif @@ -688,6 +689,7 @@ class PreferencesForm { $wgOut->addHTML( "
" ); } + $wgOut->addHtml( $this->getToggle( 'ccmeonemails' ) ); $wgOut->addHTML( '' ); } diff --git a/includes/User.php b/includes/User.php index ea05f6af47..73742f510b 100644 --- a/includes/User.php +++ b/includes/User.php @@ -56,6 +56,7 @@ class User { 'forceeditsummary', 'watchlisthideown', 'watchlisthidebots', + 'ccmeonemails', ); /** diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 2ff707c726..5e7a573f74 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -481,6 +481,7 @@ parent class in order maintain consistency across languages. 'tog-watchlisthideown' => 'Hide my edits from the watchlist', 'tog-watchlisthidebots' => 'Hide bot edits from the watchlist', 'tog-nolangconversion' => 'Disable variants conversion', +'tog-ccmeonemails' => 'Send me copies of emails I send to other users', 'underline-always' => 'Always', 'underline-never' => 'Never', -- 2.20.1