Skip to content

Commit 89a835e

Browse files
Merge pull request #64 from catalyst/fix-compatibility-45
Update deprecated constant (4.5 compatibility)
2 parents 64f0277 + 3ecfc51 commit 89a835e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

db/messages.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
'confirmation' => array(
3535
'capability' => 'mod/hvp:emailconfirmsubmission',
3636
'defaults' => array(
37-
'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
37+
'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
3838
),
3939
),
4040
);

locallib.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function hvp_get_core_assets($context) {
109109
// Do not use $PAGE->requires when viewing via mobile (aka a webservice).
110110
global $ME;
111111

112-
if (strpos($ME, 'webservice') == false) {
112+
if (strpos($ME ?? '', 'webservice') == false) {
113113
// Add core stylesheets.
114114
foreach (\H5PCore::$styles as $style) {
115115
$url = generate_css_url('library/' . $style);

0 commit comments

Comments
 (0)