summaryrefslogtreecommitdiffstats
path: root/lib/public/files.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-19 00:29:09 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-19 00:29:09 +0200
commit9b8ebdadf7e12fdaaab03d583602341a6a0210aa (patch)
tree499cd6fca699d295beaf10d6b1be89e34df01b5b /lib/public/files.php
parentcdf82909b8225a885fbf92b78208fb1fe258853e (diff)
downloadnextcloud-server-9b8ebdadf7e12fdaaab03d583602341a6a0210aa.tar.gz
nextcloud-server-9b8ebdadf7e12fdaaab03d583602341a6a0210aa.zip
Reduce call of legacy wrapper by call the OCP directly
* ref #15734 * reduces the call depth, because the private methods just call OCP stuff
Diffstat (limited to 'lib/public/files.php')
-rw-r--r--lib/public/files.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/files.php b/lib/public/files.php
index 57747a4c354..157d4a0a1ee 100644
--- a/lib/public/files.php
+++ b/lib/public/files.php
@@ -94,7 +94,7 @@ class Files {
* @since 5.0.0
*/
public static function tmpFile( $postfix='' ) {
- return(\OC_Helper::tmpFile( $postfix ));
+ return \OC::$server->getTempManager()->getTemporaryFile($postfix);
}
/**
@@ -105,7 +105,7 @@ class Files {
* @since 5.0.0
*/
public static function tmpFolder() {
- return(\OC_Helper::tmpFolder());
+ return \OC::$server->getTempManager()->getTemporaryFolder();
}
/**