Skip to content

Commit be4dfb4

Browse files
committed
fix(course_builder): add namespace to display constants for consistency
1 parent c6c372e commit be4dfb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/sync/course_builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function create_page(int $sectionnum, string $name, string $htmlcontent):
168168
// Page-specific fields — sanitize HTML from external source.
169169
$moduleinfo->content = purify_html($htmlcontent);
170170
$moduleinfo->contentformat = FORMAT_HTML;
171-
$moduleinfo->display = RESOURCELIB_DISPLAY_OPEN;
171+
$moduleinfo->display = \RESOURCELIB_DISPLAY_OPEN;
172172
$moduleinfo->printintro = 0;
173173
$moduleinfo->printlastmodified = 0;
174174

@@ -259,7 +259,7 @@ public function create_url(int $sectionnum, string $name, string $url, string $i
259259
$moduleinfo->visibleoncoursepage = 1;
260260

261261
$moduleinfo->externalurl = $url;
262-
$moduleinfo->display = RESOURCELIB_DISPLAY_AUTO;
262+
$moduleinfo->display = \RESOURCELIB_DISPLAY_AUTO;
263263

264264
$moduleinfo->intro = purify_html($intro);
265265
$moduleinfo->introformat = FORMAT_HTML;

0 commit comments

Comments
 (0)