Skip to content

YOURLS_DEBUG and yourls_debug_mode() discrepancy #4041

@ozh

Description

@ozh

Functions regarding the debug mode could be less dumb

Currently, yourls_debug_mode() sets the debug mode on or off (without much validation of the var, btw) but yourls_get_debug_mode() doesn't care and only checks if the var is set and its value
(the var is ALWAYS set, by the way : https://github.com/YOURLS/YOURLS/blob/master/includes/Config/Config.php#L204-L206)

yourls_get_debug_mode() should get the actual debug mode, which could override the const value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions