Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
bovender committed Jul 16, 2019
2 parents 5e52e6c + ade6723 commit 46bcf52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.0.5][] - 2019-07-16

### Fixed

- Delay loading of Wiki messages in order to ensure compatibility with VisualEditor.

## [4.0.4][] - 2019-07-16

### Changed
Expand Down Expand Up @@ -78,6 +84,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [3.0.0][] - 2014-09-10

[4.0.5]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.5
[4.0.4]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.4
[4.0.3]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.3
[4.0.2]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.2
Expand Down
2 changes: 1 addition & 1 deletion includes/PubmedParser_Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public static function setup( &$parser ) {
define( 'PUBMEDPARSER_INVALIDXML', 6); ///< Status code: Invalid XML data received
define( 'PUBMEDPARSER_TEMPLATECHAR', '#'); ///< Indicates template name parameter
}
self::loadMessages();
return true;
}

Expand All @@ -74,6 +73,7 @@ public static function createTable( \DatabaseUpdater $updater ) {
* Static function that is hooked to the 'pmid' magic hook.
*/
public static function render( &$parser, $param1 = '', $param2 = '', $param3 = '' ) {
if ( ! is_string( self::$authors ) ) self::loadMessages();
$core = new Core( $param1, $param2, $param3 );
return $core->execute();
}
Expand Down

0 comments on commit 46bcf52

Please sign in to comment.