aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/CoursewarePDFCertificate.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-03 20:05:20 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-03 20:05:20 +0000
commit430074ffa822c2456cabbbe77413fd2d615db7d4 (patch)
tree69fa7661f44e0e202641d872b2074958c48d5599 /lib/classes/CoursewarePDFCertificate.php
parent989e9fb694954a976d80fbfc67e37f417cf25ffa (diff)
adjustments due to phpstan report, fixes #2257
Closes #2257 Merge request studip/studip!1490
Diffstat (limited to 'lib/classes/CoursewarePDFCertificate.php')
-rw-r--r--lib/classes/CoursewarePDFCertificate.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/classes/CoursewarePDFCertificate.php b/lib/classes/CoursewarePDFCertificate.php
index e3ef02f..ca6e704 100644
--- a/lib/classes/CoursewarePDFCertificate.php
+++ b/lib/classes/CoursewarePDFCertificate.php
@@ -2,13 +2,12 @@
class CoursewarePDFCertificate extends TCPDF
{
+ protected $background;
+
public function __construct($background = false, $orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8')
{
- $this->config = Config::get();
- if ($this->config->getValue('LOAD_EXTERNAL_MEDIA') === 'proxy') {
- $this->media_proxy = new MediaProxy();
- }
parent::__construct($orientation, $unit, $format, $unicode, $encoding, false);
+
if ($background) {
$fileRef = FileRef::find($background);
$this->background = $fileRef->file->getPath();