summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-17 08:19:06 +0100
committerLukas Reschke <lukas@owncloud.com>2015-12-17 18:46:42 +0100
commit9fe3d2f1f86d4f3184cc431fc105ed14d4d26598 (patch)
tree53e42d956a30ccad05adc2d5de695d242ddb244f /lib/private/helper.php
parent792b270f22d3494e7070a89dfebe2c4464a1e748 (diff)
downloadnextcloud-server-9fe3d2f1f86d4f3184cc431fc105ed14d4d26598.tar.gz
nextcloud-server-9fe3d2f1f86d4f3184cc431fc105ed14d4d26598.zip
OC_Helper::linkToRoute is deprecated
Replaced all calls to OC_Helper::linkToRoute with OC::$server->getURLGenerator()->linkToRoute
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 779a67a2340..a3c7492631b 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -170,11 +170,11 @@ class OC_Helper {
* Returns the path to the preview of the file.
*/
public static function previewIcon($path) {
- return self::linkToRoute( 'core_ajax_preview', array('x' => 32, 'y' => 32, 'file' => $path ));
+ return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_preview', ['x' => 32, 'y' => 32, 'file' => $path]);
}
public static function publicPreviewIcon( $path, $token ) {
- return self::linkToRoute( 'core_ajax_public_preview', array('x' => 32, 'y' => 32, 'file' => $path, 't' => $token));
+ return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]);
}
/**