MDL-79210 lib: Code adjustments to the PHPSpreadSheet 1.29.0

This commit is contained in:
meirzamoodle 2023-08-31 10:10:20 +07:00
parent e55ecbac8c
commit 3c3021a641
3 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Last release package can be found in https://github.com/PHPOffice/PhpSpreadsheet
NOTICE:
* Before running composer command, make sure you have the composer version updated.
* Composer version 2.5.1 2022-12-22 15:33:54
* Composer version 2.5.5 2023-03-21 11:50:05
STEPS:
* Create a temporary folder outside your moodle installation

View File

@ -114,6 +114,12 @@ class File
*/
public static function sysGetTempDir(): string
{
// Moodle hack!
if (function_exists('make_temp_directory')) {
$temp = make_temp_directory('phpspreadsheet');
return realpath(dirname($temp));
}
$path = sys_get_temp_dir();
if (self::$useUploadTempDirectory) {
// use upload-directory when defined to allow running on environments having very restricted

View File

@ -54,7 +54,7 @@
<location>phpspreadsheet</location>
<name>PhpSpreadsheet</name>
<description>Library to read, write and create spreadsheet documents in PHP.</description>
<version>1.28.0</version>
<version>1.29.0</version>
<license>MIT</license>
<repository>https://github.com/PHPOffice/PhpSpreadsheet</repository>
<customised/>