Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/248947
Change subject: Hygiene: Fix PHPCS errors
......................................................................
Hygiene: Fix PHPCS errors
Also, add more detail to the
RelatedArticles\Hooks::onOutputPageParserOutput DocBlock.
Change-Id: I484ebfe255bc07a11d84f518014c8cc4f73f62db
(cherry picked from commit 45787910d316c4ade748bb5015d95b59b0c2facb)
---
M includes/Hooks.php
1 file changed, 9 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RelatedArticles
refs/changes/47/248947/1
diff --git a/includes/Hooks.php b/includes/Hooks.php
index 8bcbade..bcbbdac 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -94,14 +94,21 @@
global $wgCustomData;
if ( !$wgCustomData instanceof CustomData ) {
- throw new Exception( 'CustomData extension isn\'t
properly installed and is needed to view pages in cache.' );
+ throw new Exception(
+ 'CustomData extension isn\'t properly installed
and is needed to view pages in cache.'
+ );
}
return $wgCustomData;
}
/**
- * Passes the related articles array from the cached parser output
object to the output page for rendering
+ * Passes the related articles list from the cached parser output
+ * object to the output page for rendering.
+ *
+ * The list of related articles will be retrieved using
+ * <code>ParserOutput#getExtensionData</code> and, if that fails,
+ * <code>CustomData#getParserData</code>.
*
* @param OutputPage $out
* @param ParserOutput $parserOutput
--
To view, visit https://gerrit.wikimedia.org/r/248947
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I484ebfe255bc07a11d84f518014c8cc4f73f62db
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RelatedArticles
Gerrit-Branch: wmf/1.27.0-wmf.3
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Phuedx <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits