summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-04-01 14:32:49 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-04-01 14:32:49 +0200
commit288da619b12a26ad3f2e07629e2063c057f3d247 (patch)
tree77b251ec1e06ef459e56c4af16b82acd21e2e880 /lib/public/util.php
parent0af2dc7d3775f5d40cdfd3fe0cd4325abd6ce40d (diff)
downloadnextcloud-server-288da619b12a26ad3f2e07629e2063c057f3d247.tar.gz
nextcloud-server-288da619b12a26ad3f2e07629e2063c057f3d247.zip
Deprecate functions that only call the urlgenerator anyway
Diffstat (limited to 'lib/public/util.php')
-rw-r--r--lib/public/util.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 3f9b71f37a9..b50ce54839b 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -260,6 +260,7 @@ class Util {
* @param array $parameters
* @internal param array $args with param=>value, will be appended to the returned url
* @return string the url
+ * @deprecated Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters)
*/
public static function linkToRoute( $route, $parameters = array() ) {
return \OC_Helper::linkToRoute($route, $parameters);
@@ -272,6 +273,7 @@ class Util {
* @param array $args array with param=>value, will be appended to the returned url
* The value of $args will be urlencoded
* @return string the url
+ * @deprecated Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args)
*/
public static function linkTo( $app, $file, $args = array() ) {
return(\OC_Helper::linkTo( $app, $file, $args ));
@@ -362,6 +364,7 @@ class Util {
* @param string $app app
* @param string $image image name
* @return string the url
+ * @deprecated Use \OC::$server->getURLGenerator()->imagePath($app, $image)
*/
public static function imagePath( $app, $image ) {
return(\OC_Helper::imagePath( $app, $image ));