https://www.mediawiki.org/wiki/Special:Code/MediaWiki/105452

Revision: 105452
Author:   krinkle
Date:     2011-12-07 19:17:15 +0000 (Wed, 07 Dec 2011)
Log Message:
-----------
[HarvardResearch] Another tiny update
* Follows-up r105450

Modified Paths:
--------------
    trunk/extensions/CentralNotice/CentralNotice.php

Modified: trunk/extensions/CentralNotice/CentralNotice.php
===================================================================
--- trunk/extensions/CentralNotice/CentralNotice.php    2011-12-07 19:16:40 UTC 
(rev 105451)
+++ trunk/extensions/CentralNotice/CentralNotice.php    2011-12-07 19:17:15 UTC 
(rev 105452)
@@ -280,7 +280,7 @@
                        } else {
                                global $wgNoticeBanner_Harvard2011_salt, 
$wgContLang;
 
-                               $launchTimestamp = wfTimestamp( TS_UNIX, 
'2011-12-06 00:00:00' );
+                               $launchTimestamp = wfTimestamp( TS_UNIX, 
'2011-12-08 00:00:00' );
                                $groups = $wgUser->getGroups();
                                $registrationDate = $wgUser->getRegistration() 
? $wgUser->getRegistration() : 0;
                                $daysOld = floor( ( $launchTimestamp - 
wfTimestamp( TS_UNIX, $registrationDate ) ) / ( 60*60*24 ) );
@@ -323,7 +323,7 @@
 
                                if (
                                        in_array( 'sysop', $groups )
-                                       || ( $postData['editcounts'] >= 300 && 
$postData['last6monthseditcount'] >= 20 )
+                                       || ( $postData['duration'] >= 180 && 
$postData['editcounts'] >= 300 && $postData['last6monthseditcount'] >= 20 )
                                        || ( $postData['duration'] < 30 )
                                ) {
                                        $value = $postData;


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to