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

            Bug ID: 66646
           Summary: Refactor out 'infinity' variants
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: easy
          Severity: minor
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: s...@reedyboy.net
       Web browser: ---
   Mobile Platform: ---

In ProtectionForm:
if ( $value == 'infinite' || $value == 'indefinite' || $value == 'infinity' ) {

In ApiProtect:
if ( in_array( $expiry[$i], array( 'infinite', 'indefinite', 'infinity',
'never' ) ) ) {


There's a few places in the code we check for these variants of infinity. They
should be refactored out

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to