mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-75484 lib: Set Moodle files after PHPSpreadSheet upgrade
This commit is contained in:
parent
efc63be039
commit
f2835a9850
lib
phpspreadsheet
thirdpartylibs.xml@ -71,7 +71,7 @@ STEPS:
|
||||
* Update lib/thirdpartylibs.xml
|
||||
* Apply the modifications described in the CHANGES section
|
||||
* Create another commit with the previous two steps of changes
|
||||
* Go to http://localhost/lib/tests/other/spreadsheettestpage.php and test the generated files
|
||||
* Go to http://<your moodle root>/lib/tests/other/spreadsheettestpage.php and test the generated files
|
||||
|
||||
|
||||
CHANGES:
|
||||
|
@ -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.21.0</version>
|
||||
<version>1.25.2</version>
|
||||
<license>MIT</license>
|
||||
<repository>https://github.com/PHPOffice/PhpSpreadsheet</repository>
|
||||
<customised/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user