Chad has uploaded a new change for review. https://gerrit.wikimedia.org/r/108842
Change subject: Don't use $wgTitle when the Parser can provide ...................................................................... Don't use $wgTitle when the Parser can provide Change-Id: I785f01abfa73296a220ec0a671f593af38acfcbb --- M YotpoReviews.body.php 1 file changed, 6 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/YotpoReviews refs/changes/42/108842/1 diff --git a/YotpoReviews.body.php b/YotpoReviews.body.php index 69db44e..87577f5 100644 --- a/YotpoReviews.body.php +++ b/YotpoReviews.body.php @@ -15,7 +15,7 @@ } public static function renderReviews( $input, array $args, Parser $parser, PPFrame $frame ) { - global $wgTitle, $wgLogo, $wgServer, $wgYotpoAppKey; + global $wgLogo, $wgServer, $wgYotpoAppKey; $width = '100%'; //Default if ( array_key_exists( 'width', $args ) ) { @@ -41,12 +41,14 @@ $margin = '0 auto 0 auto'; } + $title = $parser->getTitle(); + $data_app_key = $wgYotpoAppKey; $data_domain = $wgServer; - $data_product_id = $wgTitle->getDBKey(); + $data_product_id = $title->getDBKey(); $data_product_models = ''; - $data_name = $wgTitle->getText(); - $data_url = $wgTitle->getFullURL(); + $data_name = $title->getText(); + $data_url = $title->getFullURL(); $data_image_url = ''; $data_description = ''; $data_bread_crumbs = ''; -- To view, visit https://gerrit.wikimedia.org/r/108842 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I785f01abfa73296a220ec0a671f593af38acfcbb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/YotpoReviews Gerrit-Branch: master Gerrit-Owner: Chad <ch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits