MDL-70409 chat: Use require_once to import lib.php

This commit is contained in:
Eric Merrill
2020-12-04 10:45:59 -05:00
parent 32866a1758
commit e2feddadd9
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
define('NO_MOODLE_COOKIES', true); // Session not used here.
require('../../../config.php');
require('../lib.php');
require_once('../lib.php');
$chatsid = required_param('chat_sid', PARAM_ALPHANUM);
$chatlasttime = optional_param('chat_lasttime', 0, PARAM_INT);
+1 -1
View File
@@ -34,7 +34,7 @@ define('NO_MOODLE_COOKIES', true); // Session not used here.
define('NO_OUTPUT_BUFFERING', true);
require('../../../config.php');
require('../lib.php');
require_once('../lib.php');
// We are going to run for a long time.
// Avoid being terminated by php.
+1 -1
View File
@@ -17,7 +17,7 @@
define('NO_MOODLE_COOKIES', true); // Session not used here.
require('../../../config.php');
require('../lib.php');
require_once('../lib.php');
$chatsid = required_param('chat_sid', PARAM_ALPHANUM);