Skip to content

Commit

Permalink
MBS-9397: Remove all out(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdagner committed Oct 7, 2024
1 parent c2a3a70 commit fdca0d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions block_qr.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function get_content() {

switch ($this->config->options) {
case 'currenturl':
$qrcodecontent = $this->page->url->out(false);
$qrcodecontent = $this->page->url;
$description = get_string('thisurl', 'block_qr');
$qrcodelink = $qrcodecontent;
$qrurl = true;
Expand All @@ -117,7 +117,7 @@ public function get_content() {
'/course/view.php',
['id' => $context->courseid]
)
)->out(false);
);
$qrcodelink = $qrcodecontent;
$description = $this->config->courseurldesc;
$qrurl = true;
Expand Down Expand Up @@ -154,7 +154,7 @@ public function get_content() {
}
}

$qrcodecontent = $format->get_view_url($id)->out(false);
$qrcodecontent = $format->get_view_url($id);
$anchor = 'section-' . $id;
$qrcodelink = $qrcodecontent;
}
Expand Down Expand Up @@ -279,7 +279,7 @@ public function get_content() {
$javascripturl = $CFG->wwwroot . '/blocks/qr/js/qrcode.min.js';

$data = [
'qrcodecontent' => $qrcodecontent,
'qrcodecontent' => is_object($qrcodecontent) ? $qrcodecontent->out(false) : $qrcodecontent,
'description' => $description,
'javascript' => $javascripturl,
'size' => $svgsize,
Expand All @@ -291,7 +291,7 @@ public function get_content() {
'calendarlocation' => $calendarlocation,
'calendarstart' => $calendarstart,
'calendarend' => $calendarend,
'qrcodelink' => $qrcodelink,
'qrcodelink' => is_object($qrcodelink) ? $qrcodelink->out(false) : $qrcodelink,
'urlshort' => $urlshort,
'fullview' => $fullview,
'configshortlink' => $configshortlink,
Expand Down

0 comments on commit fdca0d5

Please sign in to comment.