Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/246296
Change subject: Get strpos() parameters correct
......................................................................
Get strpos() parameters correct
Change-Id: I38cba9d9b6a95039f71f6bf02df9e6d2b3c6ecc5
---
M wmf-config/CommonSettings.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/96/246296/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index fcb14f7..b52ed97 100755
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -242,7 +242,7 @@
// from site outage. -- Chad, 2015-10-14
$wgHooks['RejectParserCacheValue'][] = function( ParserOutput $parserOutput,
$page, ParserOptions $popts ) {
$text = trim( $parserOutput->getText() );
- if ( strpos( "<!-- \nNewPP limit report", $text ) === 0 ) {
+ if ( strpos( $text, "<!-- \nNewPP limit report" ) === 0 ) {
$title = $page->getTitle();
LoggerFactory::getInstance( 'T115505' )->info(
'Purging empty content page: ' .
$title->getPrefixedDBkey()
--
To view, visit https://gerrit.wikimedia.org/r/246296
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I38cba9d9b6a95039f71f6bf02df9e6d2b3c6ecc5
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits