Skip to content

Commit

Permalink
Merge pull request #112 from kitzberger/bugfix
Browse files Browse the repository at this point in the history
FIX: broken instanciation of Context due to passing wrong parameter
  • Loading branch information
seboettg authored May 6, 2022
2 parents b63d68a + 8bf28fa commit e3d258d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CiteProc.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function render($data, $mode = "bibliography", $citationItems = [], $cita
*/
public function init($citationAsArray = false)
{
self::$context = new Context($this);
self::$context = new Context();
self::$context->setLocale(new Locale\Locale($this->lang)); //init locale
self::$context->setCitationsAsArray($citationAsArray);
// set markup extensions
Expand Down

0 comments on commit e3d258d

Please sign in to comment.