From 9b8ebdadf7e12fdaaab03d583602341a6a0210aa Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Sun, 19 Apr 2015 00:29:09 +0200 Subject: Reduce call of legacy wrapper by call the OCP directly * ref #15734 * reduces the call depth, because the private methods just call OCP stuff --- lib/public/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/public/util.php') 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); } /** -- cgit v1.2.3