Lewis Cawte has uploaded a new change for review. https://gerrit.wikimedia.org/r/83368
Change subject: Add missing PHP file changes. ...................................................................... Add missing PHP file changes. Change-Id: Ic73489d9aa361745f194e504b232789fbfebbbb2 --- M RandomUsersWithAvatars.php 1 file changed, 8 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RandomUsersWithAvatars refs/changes/68/83368/1 diff --git a/RandomUsersWithAvatars.php b/RandomUsersWithAvatars.php index 9fbd44a..9e9674d 100644 --- a/RandomUsersWithAvatars.php +++ b/RandomUsersWithAvatars.php @@ -34,6 +34,11 @@ // Internationalization messages $dir = dirname( __FILE__ ) . '/'; $wgExtensionMessagesFiles['RandomUsersWithAvatars'] = $dir . 'RandomUsersWithAvatars.i18n.php'; +$wgResourceModules['ext.randomuserswithavatars'] = array( + 'styles' => 'ext.randomuserswithavatars.css', + 'localBasePath' => dirname(__FILE__), + 'remoteExtPath' => 'RandomUsersWithAvatars' +); $wgHooks['ParserFirstCallInit'][] = 'wfRandomUsersWithAvatars'; function wfRandomUsersWithAvatars( &$parser ) { @@ -42,11 +47,12 @@ } function GetRandomUsersWithAvatars( $input, $args, $parser ) { - global $wgUploadDirectory, $wgDBname, $wgMemc; - + global $wgUploadDirectory, $wgDBname, $wgMemc, $wgOut; wfProfileIn( __METHOD__ ); + $wgOut->addModuleStyles( 'ext.randomuserswithavatars' ); + $parser->disableCache(); $count = ( isset( $args['count'] ) && is_numeric( $args['count'] ) ) ? intval( $args['count'] ) : 10; -- To view, visit https://gerrit.wikimedia.org/r/83368 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic73489d9aa361745f194e504b232789fbfebbbb2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/RandomUsersWithAvatars Gerrit-Branch: master Gerrit-Owner: Lewis Cawte <le...@lewiscawte.me> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits