summaryrefslogtreecommitdiffstats
path: root/lib/public/util.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/util.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/util.php')
-rw-r--r--lib/public/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index bc7f1b1f443..130cacd7264 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -395,7 +395,7 @@ class Util {
* @since 4.0.0
*/
public static function imagePath( $app, $image ) {
- return(\OC_Helper::imagePath( $app, $image ));
+ return \OC::$server->getURLGenerator()->imagePath($app, $image);
}
/**