mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-79210 lib: Code adjustments to the PHPSpreadSheet 1.29.0
This commit is contained in:
parent
e55ecbac8c
commit
3c3021a641
@ -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
|
||||
|
@ -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
|
||||
|
@ -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/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user