Skip to content

[2.1, 3.0]: Wrong position for $context['error_code'] in template #8049

@dragomano

Description

@dragomano

Basic Information

Errors.template.php, function template_fatal_error:

<div ', $context['error_code'], 'class="padding">

Result HTML (for example, on 404 error):

<div 404class="padding">

As a result, the padding class is not recognized and does not work.

Steps to reproduce

  1. Open non-exist action
  2. Open browser's devtools and select the message block

Expected result

<div class="padding">

or maybe

<div class="padding error_404">

Actual result

<div 404class="padding">

Version/Git revision

2.1.4, 3.0 Alpha 1

Database Engine

MySQL

Database Version

MariaDB-10.6.11

PHP Version

8.0.30

Logs

No response

Additional Information

No response

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions