* external 'helper' binaries.
* Other platforms could/should be added
*/
- function latex() {
+ public function __construct() {
global $CFG;
// construct directory structure
make_temp_directory('latex');
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function latex() {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct();
+ }
+
/**
* Accessor function for support_platform field.
* @return boolean value of supported_platform