Skip to content
This repository was archived by the owner on Jan 2, 2020. It is now read-only.
This repository was archived by the owner on Jan 2, 2020. It is now read-only.

Undefined constant __DIR__ in bootstrap.php, Line 160. #34

@fbender

Description

@fbender

__DIR__ is only defined from PHP 5.3 onwards. However, the Contao check also checks for 2.11 compat, which only requires PHP 5.2. Thus, __DIR__ should be replaced by dirname(__FILE__) which is the correct equivalent in all PHP versions [1].

[1] http://php.net/manual/language.constants.predefined.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions