Proyectos de Subversion Moodle

Rev

Rev 1435 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1435 Rev 1436
Línea 23... Línea 23...
23
 */
23
 */
Línea 24... Línea 24...
24
 
24
 
Línea 25... Línea 25...
25
use function PHPSTORM_META\type;
25
use function PHPSTORM_META\type;
26
 
26
 
-
 
27
require_once("classes/info_moofactory_notification.php");
-
 
28
// // require_once($CFG->dirroot . '/course/format/moofactory/lib.php'); // TEMPORALMENTE DESHABILITADO
-
 
29
 
-
 
30
// Funciones de reemplazo para evitar errores
-
 
31
if (!function_exists('format_moofactory_compare_events')) {
-
 
32
    function format_moofactory_compare_events($a, $b)
-
 
33
    {
-
 
34
        if (!isset($a['expected']) || !isset($b['expected'])) {
-
 
35
            return 0;
-
 
36
        }
-
 
37
        return $a['expected'] - $b['expected'];
-
 
38
    }
-
 
39
}
-
 
40
 
-
 
41
if (!function_exists('format_moofactory_compare_times')) {
-
 
42
    function format_moofactory_compare_times($a, $b)
-
 
43
    {
-
 
44
        if (!isset($a['expected']) || !isset($b['expected'])) {
-
 
45
            return 0;
-
 
46
        }
-
 
47
        return $a['expected'] - $b['expected'];
Línea 27... Línea 48...
27
require_once("classes/info_moofactory_notification.php");
48
    }
28
// require_once($CFG->dirroot . '/course/format/moofactory/lib.php');
49
}
29
 
50
 
30
function test()
51
function test()