MDL-75484 lib: Set Moodle files after PHPSpreadSheet upgrade
This commit is contained in:
@@ -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:
|
||||
|
||||
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user