Last modified: 2009-03-13 19:47:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19965, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17965 - Show reviewed page for all users
Show reviewed page for all users
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Aaron Schulz
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-13 15:53 UTC by Thibault Cohen
Modified: 2009-03-13 19:47 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Thibault Cohen 2009-03-13 15:53:37 UTC
Hi
To respect ISO, I needed to do : 
 - Do not show page which is not reviewed : I don 't find how to do this. Did plan it or have you an idea or tips to help me ?
 - reviewed page as default page for everybody : I made a patch to show, by default (when you arrive to a page), for all users, the reviewed version. (For mediawiki 1.13) :

diff -Naur FlaggedRevs/FlaggedArticle.php FlaggedRevs.sfl/FlaggedArticle.php
 --- FlaggedRevs/FlaggedArticle.php      2008-08-08 15:00:28.000000000 -0400
 +++ FlaggedRevs.sfl/FlaggedArticle.php  2009-02-18 14:03:16.000000000 -0500
 @@ -73,6 +73,12 @@
          */
         public function pageOverride() {
                 global $wgUser, $wgRequest;
 +               global $wgFlaggedRevsReviewedOnly;
 +               if ( $wgFlaggedRevsReviewedOnly ){
 +                       return true;
 +               }
                 # This only applies to viewing content pages
                 $action = $wgRequest->getVal( 'action', 'view' );
                 if( ($action !='view' && $action !='purge') || !$this->isReviewable() )
 diff -Naur FlaggedRevs/FlaggedRevs.php FlaggedRevs.sfl/FlaggedRevs.php
 --- FlaggedRevs/FlaggedRevs.php 2009-01-21 02:00:31.000000000 -0500
 +++ FlaggedRevs.sfl/FlaggedRevs.php     2009-02-18 14:03:16.000000000 -0500
 @@ -57,6 +57,11 @@
  # IMPORTANT:
  # When configuring globals, add them to localsettings.php and edit them THERE
  
 +# Reviewed pages is shown by default
 +$wgFlaggedRevsReviewedOnly = true;
 +
  # This will only distinguish "sigted", "quality", and unreviewed
  # A small icon will show in the upper right hand corner
  $wgSimpleFlaggedRevsUI = false;
Comment 1 Aaron Schulz 2009-03-13 19:47:30 UTC
See http://www.mediawiki.org/wiki/Extension:FlaggedRevs#Site_access

set $wgFlaggedRevsExceptions = array();

Add these to localsettings.php, not flaggedrevs.php

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links