$remove = $wgRequest->getVal( 'remove' );
$id = $wgRequest->getArray( 'id' );
- $wgOut->addWikiText( wfMsg( 'email_notification_infotext' ) );
+ if( $wgUser->getOption( 'enotifwatchlistpages' ) ) {
+ $wgOut->addHTML( "<div class='enotifinfo'>\n" );
+
+ $wgOut->addWikiText( wfMsg( 'email_notification_infotext' ) );
+
+ $wgOut->addHTML( '<form action="' .
+ $specialTitle->escapeLocalUrl( 'action=submit&magic=yes' ) .
+ '" method="post"><input type="submit" name="dummy" value="' .
+ htmlspecialchars( wfMsg( 'email_notification_reset' ) ) .
+ '" /><input type="hidden" name="reset" value="all" /></form>' .
+ "</div>\n\n" );
+ }
if( $wgRequest->getVal( 'reset' ) == 'all' ) {
$wgUser->clearAllNotifications( $uid );
'updatedmarker' => '<span class=\'updatedmarker\'> updated (since my last visit) </span>',
'email_notification_mailer' => '{{SITENAME}} Notification Mailer',
-'email_notification_infotext' => '
-<strong>Email Notification</strong><p>
-<form action=\'{{localurl:Special:Watchlist|action=submit&magic=yes}}\' method=\'post\'>
-<ul>
-<li>You will be notified by email when someone changes a page which is listed in your watchlist.</li>
-<li>A flag is set so that you receive only one email on the first change.</li>
-<li>Your own edits do <b>not</b> trigger the sending of notifications.</li>
-<li>{{MediaWiki:updatedmarker}} means that the <b><i>page has changed since your last visit and that a notification mail has been sent to you.</i></b>.</li>
-<li>The flag is automatically cleared when you visit such pages.</li>
-<li> Alternatively, you can reset all flags at once by clicking on <input type="submit" name="dummy" value=\'Reset all notification flags (set their status to "visited")\'><input type="hidden" name="reset" value="all"></form></li>
-</ul>
-<hr>',
+'email_notification_infotext' => "'''Email notification is on.'''
+You will be notified by email when someone changes a page which is listed in your watchlist.",
+'email_notification_reset' => 'Reset all notification flags (set their status to "visited")',
'email_notification_newpagetext'=> 'This is a new page.',
'email_notification_to' => '$WATCHINGUSERNAME_QP <$WATCHINGUSEREMAILADDR>',
'email_notification_subject' => '{{SITENAME}} page $PAGETITLE_QP has been changed by $PAGEEDITOR_QP',