MDL-40438 migrate all collatorlib:: and textlib:: uses
This commit is contained in:
@@ -85,9 +85,9 @@ class csv_import_reader {
|
||||
$this->close();
|
||||
$this->_error = null;
|
||||
|
||||
$content = textlib::convert($content, $encoding, 'utf-8');
|
||||
$content = core_text::convert($content, $encoding, 'utf-8');
|
||||
// remove Unicode BOM from first line
|
||||
$content = textlib::trim_utf8_bom($content);
|
||||
$content = core_text::trim_utf8_bom($content);
|
||||
// Fix mac/dos newlines
|
||||
$content = preg_replace('!\r\n?!', "\n", $content);
|
||||
// Remove any spaces or new lines at the end of the file.
|
||||
|
||||
Reference in New Issue
Block a user