diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php index de3c7ccce5e3e..951377abf8664 100644 --- a/apps/files/ajax/list.php +++ b/apps/files/ajax/list.php @@ -43,7 +43,7 @@ } $data = array(); - $baseUrl = OCP\Util::linkTo('files', 'index.php') . '?dir='; + $baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir='; $permissions = $dirInfo->getPermissions(); diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 698febd4c1764..e8eb28f25c619 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -81,7 +81,7 @@
- + t('Add "%s" as trusted domain', array($_['domain']))); ?>
diff --git a/lib/public/Util.php b/lib/public/Util.php index 7e43118977518..9ffa55e2dfd70 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -233,33 +233,6 @@ public static function linkToPublic($service) { return \OC_Helper::linkToPublic($service); } - /** - * Creates an url using a defined route - * @param string $route - * @param array $parameters - * @internal param array $args with param=>value, will be appended to the returned url - * @return string the url - * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters) - * @since 5.0.0 - */ - public static function linkToRoute( $route, $parameters = array() ) { - return \OC::$server->getURLGenerator()->linkToRoute($route, $parameters); - } - - /** - * Creates an url to the given app and file - * @param string $app app - * @param string $file file - * @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 8.1.0 Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args) - * @since 4.0.0 - parameter $args was added in 4.5.0 - */ - public static function linkTo( $app, $file, $args = array() ) { - return \OC::$server->getURLGenerator()->linkTo($app, $file, $args); - } - /** * Returns the server host name without an eventual port number * @return string the server hostname @@ -307,18 +280,6 @@ public static function getDefaultEmailAddress($user_part) { return $user_part.'@localhost.localdomain'; } - /** - * Creates path to an image - * @param string $app app - * @param string $image image name - * @return string the url - * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->imagePath($app, $image) - * @since 4.0.0 - */ - public static function imagePath( $app, $image ) { - return \OC::$server->getURLGenerator()->imagePath($app, $image); - } - /** * Make a human file size (2048 to 2 kB) * @param int $bytes file size in bytes