jenkins-bot has submitted this change and it was merged.

Change subject: Also skip TimedText namespace from empty purges
......................................................................


Also skip TimedText namespace from empty purges

Change-Id: I335f6fe506df95ea4f0327c277354e2e0c90278e
---
M wmf-config/CommonSettings.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Ori.livneh: Looks good to me, but someone else must approve
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 0e412d5..ed07e8c 100755
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -244,7 +244,7 @@
        $text = trim( $parserOutput->getText() );
        $title = $page->getTitle();
        $pos = strpos( $text, 'NewPP' );
-       if ( $title->getNamespace() != NS_CATEGORY && $pos !== false && $pos < 
10 ) {
+       if ( !in_array( $title->getNamespace(), array( NS_CATEGORY, 
NS_TIMEDTEXT ) ) && $pos !== false && $pos < 10 ) {
                LoggerFactory::getInstance( 'T115505' )->info(
                        'Purging empty content page: ' . 
$title->getPrefixedDBkey()
                );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I335f6fe506df95ea4f0327c277354e2e0c90278e
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to