Unlanguaged code tags trigger warning

Created on 1 May 2024, 8 months ago
Updated 25 June 2024, 6 months ago

Problem/Motivation

When a code block without language is defined either by another module or manually (<code>) the following warning message is displayed:

Warning: Undefined variable $languages in Drupal\highlightjs_input_filter\Plugin\Filter\HighlightJs->process() (line 57 of modules/contrib/highlightjs_input_filter/src/Plugin/Filter/HighlightJs.php).

This is because the $languages array is defined when the first language is added, if no language is added the variable is not defined.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.1

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain enchufe Spain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024