aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/CoursewarePDFCertificate.php
diff options
context:
space:
mode:
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();