History log of /dokuwiki/inc/defines.php (Results 1 – 4 of 4)
Revision Date Author Comments
# b21b7935 07-Jan-2025 Tobias Bengfort <tobias.bengfort@posteo.de>

mv UNUSABLE_PASSWORD const to defines


# d930200a 14-Mar-2023 Andreas Gohr <andi@splitbrain.org>

disable code sniff for define check


# 2b483eba 06-Mar-2023 Andreas Gohr <andi@splitbrain.org>

move mail header constants to define file


# 46028c4c 04-Jun-2020 Andreas Gohr <andi@splitbrain.org>

Move defines to their own file

As described in
https://github.com/dwp-forge/columns/issues/5#issuecomment-638467603
sometime the Lexer constants have not been (auto)loaded when a syntax plugin
is in

Move defines to their own file

As described in
https://github.com/dwp-forge/columns/issues/5#issuecomment-638467603
sometime the Lexer constants have not been (auto)loaded when a syntax plugin
is invoked (I'm not sure why).

In general PSR2 discourages a mix of main code and function/class setup
with the call to define() being considered main code.

This patch moves these the define calls to a separate new file, solving
both of the above problems.

These are not all our defines. Instead I focused on the ones that are
ENUM-like.

In the future we should think about what defines can be replaced by
class constants and what other define() calls should be moved.

show more ...