Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

instead!
  • Loading branch information...
commit ad2a21cc9242667a965bc545e6a0a97dcc706313 1 parent dc0031c
Sean Harvey halkyon authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 core/Core.php
  2. +1 −1  dev/install/install.php5
5 core/Core.php
View
@@ -285,6 +285,11 @@
///////////////////////////////////////////////////////////////////////////////
// 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
2  dev/install/install.php5
View
@@ -1006,7 +1006,7 @@ PHP
$this->writeToFile("mysite/_config.php", <<<PHP
<?php
-Global \$project;
+global \$project;
\$project = 'mysite';
global \$databaseConfig;
Please sign in to comment.
Something went wrong with that request. Please try again.