https://bugzilla.wikimedia.org/show_bug.cgi?id=17965

           Summary: Show reviewed page for all users
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: FlaggedRevs
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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;


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to