MDL-55848 assignfeedback_editpdf: remove problematic class_exists check

Due to a bug on opcache, this check had to be removed along the empty class to avoid
error on assignment grading interface.
This commit is contained in:
Simey Lameze
2016-11-15 09:05:42 +08:00
parent 0b8e0c374f
commit 3745973281
2 changed files with 7 additions and 12 deletions
@@ -16,17 +16,6 @@
* 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
*/
class fpdi_bridge extends FPDF
{
// empty body
}
} else {
/**
* Class fpdi_bridge
*
@@ -205,4 +194,3 @@ if (!class_exists('TCPDF', false)) {
return current(unpack('H*', $str));
}
}
}
@@ -19,6 +19,13 @@ Installation
3) Update mod/assign/feedback/editpdf/fpdi/fpdi_bridge.php (or the replacement file) to extend 'pdf' instead of 'TCPDF'.
4) Make a note below of any changes made.
2016/11/15
----------
1) Class not exists check and the empty fpdi_bridge class has been removed from fpdi_bridge.php to fix a behat error.
Updated by Simey Lameze (MDL-55848)
2015/12/04
----------
Updated to FPDI: 1.6.1