lib, auth, webservice: MDL-20876 fix deprecated split() calls.
This commit is contained in:
@@ -486,7 +486,7 @@ class component_installer {
|
||||
$lines=preg_split('/\r?\n/',$contents);
|
||||
/// Each line will be one component
|
||||
foreach($lines as $line) {
|
||||
$availablecomponents[] = split(',', $line);
|
||||
$availablecomponents[] = explode(',', $line);
|
||||
}
|
||||
/// If no components have been found, return error
|
||||
if (empty($availablecomponents)) {
|
||||
|
||||
Reference in New Issue
Block a user