mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE getSysTempDir() is now deprecated, use sys_get_temp_dir()
instead!
This commit is contained in:
parent
dc0031cf26
commit
ad2a21cc92
@ -285,6 +285,11 @@ Debug::loadErrorHandlers();
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// HELPER FUNCTIONS
|
||||
|
||||
function getSysTempDir() {
|
||||
Deprecation::notice(3.0, 'Please use PHP function get_sys_temp_dir() instead.');
|
||||
return sys_get_temp_dir();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the temporary folder that silverstripe should use for its cache files
|
||||
* This is loaded into the TEMP_FOLDER define on start up
|
||||
|
@ -1006,7 +1006,7 @@ PHP
|
||||
$this->writeToFile("mysite/_config.php", <<<PHP
|
||||
<?php
|
||||
|
||||
Global \$project;
|
||||
global \$project;
|
||||
\$project = 'mysite';
|
||||
|
||||
global \$databaseConfig;
|
||||
|
Loading…
Reference in New Issue
Block a user