/**
	 * Adds the required module if we are on a user (talk) page.
	 *
	 * @param $out OutputPage
	 * @param $skin Skin
	 *
	 * @return true
	 */
	public static function beforePageDisplay( $out, $skin ) {
		global $wgWikiLoveGlobal, $wgUser;
		if ( !$wgWikiLoveGlobal && !$wgUser->getOption( 'wikilove-enabled' ) ) {
			return true;
		}

		$title = self::getUserTalkPage( $skin->getTitle() );
		if ( !is_null( $title ) ) {
			$out->addModules( array( 'ext.wikiLove.icon', 'ext.wikiLove.init' ) );
			self::$recipient = $title->getBaseText();
		}
		return true;
	}