MDL-70409 chat: Use require_once to import lib.php
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user