From ad2a21cc9242667a965bc545e6a0a97dcc706313 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 16 Apr 2012 12:24:23 +1200 Subject: [PATCH] API CHANGE getSysTempDir() is now deprecated, use sys_get_temp_dir() instead! --- core/Core.php | 5 +++++ dev/install/install.php5 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/Core.php b/core/Core.php index 3a100ebaf..ce9ad15f8 100644 --- a/core/Core.php +++ b/core/Core.php @@ -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 diff --git a/dev/install/install.php5 b/dev/install/install.php5 index b4c081daf..3283ac1f5 100644 --- a/dev/install/install.php5 +++ b/dev/install/install.php5 @@ -1006,7 +1006,7 @@ PHP $this->writeToFile("mysite/_config.php", <<