Skip to content
This repository
Browse code

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

instead!
  • Loading branch information...
commit ad2a21cc9242667a965bc545e6a0a97dcc706313 1 parent dc0031c
Sean Harvey authored April 16, 2012
5  core/Core.php
@@ -285,6 +285,11 @@
285 285
 ///////////////////////////////////////////////////////////////////////////////
286 286
 // HELPER FUNCTIONS
287 287
 
  288
+function getSysTempDir() {
  289
+	Deprecation::notice(3.0, 'Please use PHP function get_sys_temp_dir() instead.');
  290
+	return sys_get_temp_dir();
  291
+}
  292
+
288 293
 /**
289 294
  * Returns the temporary folder that silverstripe should use for its cache files
290 295
  * This is loaded into the TEMP_FOLDER define on start up
2  dev/install/install.php5
@@ -1006,7 +1006,7 @@ PHP
1006 1006
 			$this->writeToFile("mysite/_config.php", <<<PHP
1007 1007
 <?php
1008 1008
 
1009  
-Global \$project;
  1009
+global \$project;
1010 1010
 \$project = 'mysite';
1011 1011
 
1012 1012
 global \$databaseConfig;

0 notes on commit ad2a21c

Please sign in to comment.
Something went wrong with that request. Please try again.