Skip to content

Commit

Permalink
MDL-60301 assignfeedback_editpdf: changes to files after FPDI update
Browse files Browse the repository at this point in the history
1) Change the fpdi_bridge class so that it extends the pdf class,
rather than the TCPDF class.
2) Empty class check that was implemented before
3) Updated the editpdf/fpdi/readme_moodle.txt file to document the changes.
4) Updated the editpdf/thirdpartylibs.xml to reflect the update to the
FPDI library.
  • Loading branch information
ankitagarwal committed Oct 4, 2017
1 parent faa9be0 commit 61cef46
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions mod/assign/feedback/editpdf/fpdi/fpdi_bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,12 @@
* This way it is possible to use FPDI for both FPDF and TCPDF with one FPDI version.
*/

if (!class_exists('TCPDF', false)) {
/**
* Class fpdi_bridge
*
* This has been modified to use the Moodle pdf class which in turn extends the TCPDF class.
*/
class fpdi_bridge extends FPDF
{
// empty body
}

} else {

/**
* Class fpdi_bridge
*/
class fpdi_bridge extends TCPDF
class fpdi_bridge extends pdf
{
/**
* Array of Tpl-Data
Expand Down Expand Up @@ -203,4 +194,3 @@ public function str2hex($str)
return current(unpack('H*', $str));
}
}
}

0 comments on commit 61cef46

Please sign in to comment.