Skip to content

Detect button::BODY_OUTLINE reliably.#154

Merged
adrian-sarmas merged 1 commit intoelearningsoftware:masterfrom
lucaboesch:activityoverview
Jan 21, 2026
Merged

Detect button::BODY_OUTLINE reliably.#154
adrian-sarmas merged 1 commit intoelearningsoftware:masterfrom
lucaboesch:activityoverview

Conversation

@lucaboesch
Copy link
Contributor

@lucaboesch lucaboesch commented Jan 21, 2026

Unfortunately @adrian-sarmas, pardon me, if (defined('button::SECONDARY_OUTLINE')) { wasn't the right choice. It prevented fails for Moodle versions without that class and constant but more correct it would have been if (class_exists(button::class) && (new \ReflectionClass(button::class))->hasConstant('SECONDARY_OUTLINE'))

@adrian-sarmas adrian-sarmas merged commit 7b6df46 into elearningsoftware:master Jan 21, 2026
46 checks passed
@adrian-sarmas
Copy link
Collaborator

Thanks @lucaboesch !

@lucaboesch lucaboesch deleted the activityoverview branch January 21, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants