MDL-55848 assignfeedback_editpdf: remove problematic class_exists check
authorSimey Lameze <simey@moodle.com>
Fri, 9 Sep 2016 06:03:03 +0000 (14:03 +0800)
committerSimey Lameze <simey@moodle.com>
Tue, 15 Nov 2016 01:05:42 +0000 (09:05 +0800)
Due to a bug on opcache, this check had to be removed along the empty class to avoid
error on assignment grading interface.

mod/assign/feedback/editpdf/fpdi/fpdi_bridge.php
mod/assign/feedback/editpdf/fpdi/readme_moodle.txt

index b2e43c4..2062185 100644 (file)
  * 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));
         }
     }
-}
\ No newline at end of file
index 7cac3bb..edc01d8 100644 (file)
@@ -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