<?php
/**
 * Custom ResourceLoader module that loads a custom WikiLove.js per-wiki.
 */
class WikiLoveLocal extends ResourceLoaderWikiModule {

	/**
	 * @param $context ResourceLoaderContext
	 * @return array
	 */
	protected function getPages( ResourceLoaderContext $context ) {
		return array(
			'MediaWiki:WikiLove.js'      => array( 'type' => 'script' ),
		);
	}

	/**
	 * @return array
	 */
	public function getMessages() {
		global $wgWikiLoveOptionMessages;
		return $wgWikiLoveOptionMessages;
	}
}

<?php
/**
 * Custom ResourceLoader module that loads a custom WikiLove.js per-wiki.
 */
class WikiLoveLocal extends ResourceLoaderWikiModule {

	/**
	 * @param $context ResourceLoaderContext
	 * @return array
	 */
	protected function getPages( ResourceLoaderContext $context ) {
		return array(
			'MediaWiki:WikiLove.js'      => array( 'type' => 'script' ),
		);
	}
}

Remove broken and obsolete WikiLoveLocal::getMessages() method
Remove broken and obsolete WikiLoveLocal::getMessages() method

This returns NULL instead of Array due to the global no longer
existing as of 6e96cb0.

Change-Id: Ic89d3ee3e436a8b0d896c2362be1f408baeebd1f
