Kaldari has uploaded a new change for review.


Change subject: Switching to simpler "new MWTimestamp" and adding comment

Switching to simpler "new MWTimestamp" and adding comment

Changing MWTimestamp::getInstance to new MWTimestamp and also adding
a comment about how you can set $wgPageTriageNoIndexTemplates to
false to disable the noindex templates feature entirely. These
changes are based on feedback at change Ibf22b9d59.

Change-Id: If41bdf70362587c4a78fa6a7e8a445b7c3c04829
M PageTriage.hooks.php
M PageTriage.php
2 files changed, 3 insertions(+), 2 deletions(-)

  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageTriage 

diff --git a/PageTriage.hooks.php b/PageTriage.hooks.php
index f860899..a97a9dc 100755
--- a/PageTriage.hooks.php
+++ b/PageTriage.hooks.php
@@ -316,7 +316,7 @@
                        if ( $pageCreationDateTime ) {
                                // Get the age of the article in days
-                               $timestamp = MWTimestamp::getInstance( 
$pageCreationDateTime );
+                               $timestamp = new MWTimestamp( 
$pageCreationDateTime );
                                $dateInterval = $timestamp->diff( 
MWTimestamp::getInstance() );
                                $articleDaysOld = $dateInterval->format( '%a' );
diff --git a/PageTriage.php b/PageTriage.php
index e9d86cf..ff69f81 100644
--- a/PageTriage.php
+++ b/PageTriage.php
@@ -63,7 +63,8 @@
 // 1 day - How long after visiting Special:NewPagesFeed do we show review 
links on articles
 $wgPageTriageMarkPatrolledLinkExpiry = 3600 * 24;
 // Title of page in MediaWiki namespace containing a list of templates that 
-// trigger noindexing of pages, e.g. speedy deletion templates
+// trigger noindexing of pages, e.g. speedy deletion templates. Set this to 
+// to disable this feature.
 $wgPageTriageNoIndexTemplates = 'Noindex templates';
 // Set this to true if new, unreviewed articles should be set to noindex. In 
 // words, if they should not be indexed by search engines until they are 

To view, visit https://gerrit.wikimedia.org/r/315584
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If41bdf70362587c4a78fa6a7e8a445b7c3c04829
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageTriage
Gerrit-Branch: master
Gerrit-Owner: Kaldari <rkald...@wikimedia.org>

MediaWiki-commits mailing list

Reply via email to