File tree 3 files changed +8
-2
lines changed
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Last release package can be found in https://github.com/PHPOffice/PhpSpreadsheet
4
4
5
5
NOTICE:
6
6
* Before running composer command, make sure you have the composer version updated.
7
- * Composer version 2.5.1 2022-12-22 15:33:54
7
+ * Composer version 2.5.5 2023-03-21 11:50:05
8
8
9
9
STEPS:
10
10
* Create a temporary folder outside your moodle installation
Original file line number Diff line number Diff line change @@ -114,6 +114,12 @@ public static function realpath(string $filename): string
114
114
*/
115
115
public static function sysGetTempDir (): string
116
116
{
117
+ // Moodle hack!
118
+ if (function_exists ('make_temp_directory ' )) {
119
+ $ temp = make_temp_directory ('phpspreadsheet ' );
120
+ return realpath (dirname ($ temp ));
121
+ }
122
+
117
123
$ path = sys_get_temp_dir ();
118
124
if (self ::$ useUploadTempDirectory ) {
119
125
// use upload-directory when defined to allow running on environments having very restricted
Original file line number Diff line number Diff line change 54
54
<location >phpspreadsheet</location >
55
55
<name >PhpSpreadsheet</name >
56
56
<description >Library to read, write and create spreadsheet documents in PHP.</description >
57
- <version >1.28 .0</version >
57
+ <version >1.29 .0</version >
58
58
<license >MIT</license >
59
59
<repository >https://github.com/PHPOffice/PhpSpreadsheet</repository >
60
60
<customised />
You can’t perform that action at this time.
0 commit comments