Closed sverhagen closed 6 years ago
As reported via e-mail by Jason: functionality added earlier to make the plugin work in components seems to not work.
The unverified analysis is as follows.
The problem is the following check in MusicTagsHelper.php:
MusicTagsHelper.php
if (isset($article->introtext))
It appears that introtext does not exist in component texts.
introtext
I think the correct version should be:
public static function getMusicTagsFromArticle($article) { $matches1 = array(); $matches2 = array(); if (isset($article->introtext)) { $matches1 = self::getMusicTagsFromText($article->introtext); } if (isset($article->text)) { $matches2 = self::getMusicTagsFromText($article->text); } return array_unique(array_merge($matches1, $matches2)); }
I believe this is/was a duplicate of #62.
As reported via e-mail by Jason: functionality added earlier to make the plugin work in components seems to not work.
The unverified analysis is as follows.
The problem is the following check in
MusicTagsHelper.php
:It appears that
introtext
does not exist in component texts.I think the correct version should be: