Skip to content

Commit

Permalink
Merge pull request #64 from catalyst/fix-compatibility-45
Browse files Browse the repository at this point in the history
Update deprecated constant (4.5 compatibility)
  • Loading branch information
tuanngocnguyen authored Nov 28, 2024
2 parents 64f0277 + 3ecfc51 commit 89a835e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'confirmation' => array(
'capability' => 'mod/hvp:emailconfirmsubmission',
'defaults' => array(
'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
),
),
);
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function hvp_get_core_assets($context) {
// Do not use $PAGE->requires when viewing via mobile (aka a webservice).
global $ME;

if (strpos($ME, 'webservice') == false) {
if (strpos($ME ?? '', 'webservice') == false) {
// Add core stylesheets.
foreach (\H5PCore::$styles as $style) {
$url = generate_css_url('library/' . $style);
Expand Down

0 comments on commit 89a835e

Please sign in to comment.