API CHANGE getSysTempDir() is now deprecated, use sys_get_temp_dir()

instead!
This commit is contained in:
Sean Harvey 2012-04-16 12:24:23 +12:00
parent dc0031cf26
commit ad2a21cc92
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -1006,7 +1006,7 @@ PHP
$this->writeToFile("mysite/_config.php", <<<PHP
<?php
Global \$project;
global \$project;
\$project = 'mysite';
global \$databaseConfig;