Clean up default options, and remove so-called "UseMod-style" RC option which fails...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Dec 2004 03:59:06 +0000 (03:59 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Dec 2004 03:59:06 +0000 (03:59 +0000)
includes/DefaultSettings.php
includes/SpecialPreferences.php
includes/SpecialRecentchanges.php

index 2e0b485..4bada21 100644 (file)
@@ -544,18 +544,16 @@ $wgEmailNotificationMailsSentFromPageEditor       = false; # false: Enotif mails appea
 # If set to false, the corresponding input form on the user preference page is suppressed
 # It call this to be a "user-preferences-option (UPO)"
 $wgEmailAuthentication                         = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
-$wgEmailNotificationForWatchlistPages          = true; # UPO
-$wgEmailNotificationForUserTalkPages           = true; # UPO
-$wgEmailNotificationRevealPageEditorAddress    = true; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
+$wgEmailNotificationForWatchlistPages          = false; # UPO
+$wgEmailNotificationForUserTalkPages           = false;        # UPO
+$wgEmailNotificationRevealPageEditorAddress    = false;        # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
 $wgEmailNotificationForMinorEdits              = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
 #                                                      # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
 
-# Show recent changes in UseMod style, i.e. only the recent change of a page is listed
-$wgRCUseModStyle                               = true; # UPO
 # Show watching users in recent changes, watchlist and page history views
-$wgRCShowWatchingUsers                                 = true; # UPO
+$wgRCShowWatchingUsers                                 = false; # UPO
 # Show watching users in Page views
-$wgPageShowWatchingUsers                       = true;
+$wgPageShowWatchingUsers                       = false;
 # Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages with new changes
 $wgShowUpdatedMarker                           = true; # UPO
 
index bffacf4..84d383a 100644 (file)
@@ -358,7 +358,7 @@ class PreferencesForm {
                global $wgAllowRealName, $wgImageLimits;
                global $wgLanguageNames, $wgDisableLangConversion;
                global $wgEmailNotificationForWatchlistPages, $wgEmailNotificationForUserTalkPages,$wgEmailNotificationForMinorEdits;
-               global $wgRCUseModStyle, $wgRCShowWatchingUsers, $wgEmailNotificationRevealPageEditorAddress;
+               global $wgRCShowWatchingUsers, $wgEmailNotificationRevealPageEditorAddress;
                global $wgEnableEmail, $wgEnableUserEmail, $wgEmailAuthentication;
                global $wgContLanguageCode;
 
@@ -622,13 +622,12 @@ class PreferencesForm {
        </fieldset>\n\n" );
 
                $shownumberswatching = ($wgRCShowWatchingUsers) ? $this->getToggle('shownumberswatching') : '';
-               $rcusemodstyle = ($wgRCUseModStyle) ? $this->getToggle('rcusemodstyle') : '';
 
                $wgOut->addHTML( "
        <fieldset><legend>".wfMsg('prefs-rc')."</legend>
                <div><label>$rcc: <input type='text' name=\"wpRecent\" value=\"$this->mRecent\" size='6' /></label></div>" .
                $this->getToggle( "hideminor" ) . $shownumberswatching .
-               $this->getToggle( "usenewrc" ) . $rcusemodstyle . $this->getToggle('showupdated', wfMsg('updatedmarker')) .
+               $this->getToggle( "usenewrc" ) . $this->getToggle('showupdated', wfMsg('updatedmarker')) .
                "<div><label>$stt: <input type='text' name=\"wpStubs\" value=\"$this->mStubs\" size='6' /></label></div>
                 <div><label>".wfMsg('imagemaxsize')."<select name=\"wpImageSize\">");
                
index 2e24661..f5e6cf9 100644 (file)
@@ -18,7 +18,7 @@ function wfSpecialRecentchanges( $par ) {
        global $wgUser, $wgOut, $wgLang, $wgContLang, $wgTitle, $wgMemc, $wgDBname;
        global $wgRequest, $wgSitename, $wgLanguageCode, $wgContLanguageCode;
        global $wgFeedClasses, $wgUseRCPatrol;
-       global $wgRCUseModStyle, $wgRCShowWatchingUsers, $wgShowUpdatedMarker;
+       global $wgRCShowWatchingUsers, $wgShowUpdatedMarker;
        $fname = 'wfSpecialRecentchanges';
 
        # Get query parameters
@@ -116,13 +116,11 @@ function wfSpecialRecentchanges( $par ) {
        $patrLink = $sk->makeKnownLink( $wgContLang->specialPage( 'Recentchanges' ),
          $showhide[1-$hidepatrolled], wfArrayToCGI( array( 'hidepatrolled' => 1-$hidepatrolled ), $urlparams ) );
 
-       $RCUseModStyle = ($wgRCUseModStyle && $wgUser->getOption('rcusemodstyle')) ? 'AND rc_this_oldid=0 '  :  '' ;
-
        $uid = $wgUser->getID();
        # Patch for showing "updated since last visit" marker
        $sql2 = "SELECT $recentchanges.*" . ($uid ? ",wl_user,wl_notificationtimestamp" : "") . " FROM $recentchanges " .
          ($uid ? "LEFT OUTER JOIN $watchlist ON wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace " : "") .
-         "WHERE rc_timestamp > '{$cutoff}' {$hidem} " . $RCUseModStyle .
+         "WHERE rc_timestamp > '{$cutoff}' {$hidem} " .
          "ORDER BY rc_timestamp DESC LIMIT {$limit}";
 
        $res = $dbr->query( $sql2, DB_SLAVE, $fname );
@@ -168,7 +166,7 @@ function wfSpecialRecentchanges( $par ) {
 
                                if ($wgShowUpdatedMarker
                                        && $wgUser->getOption( 'showupdated' )
-                                       && $obj->wl_notificationtimestamp
+                                       && !empty( $obj->wl_notificationtimestamp )
                                        && ($obj->rc_timestamp >= $obj->wl_notificationtimestamp)) {
                                                $rc->notificationtimestamp = true;
                                } else {