diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 12:00:18 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 12:00:18 +0100 |
commit | 450e2f3bd308388e5df01b2b2ea38e6bf16b1c67 (patch) | |
tree | 78029410ea899a5105e512af8e7b7458e6d43717 /lib/private/helper.php | |
parent | e42f262d85ddd891ce823dd5d9b5a4a87c8a7786 (diff) | |
download | nextcloud-server-450e2f3bd308388e5df01b2b2ea38e6bf16b1c67.tar.gz nextcloud-server-450e2f3bd308388e5df01b2b2ea38e6bf16b1c67.zip |
Move OC_Helper code to OCP\Util for linkToRemote
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index efbc6bda1db..bd69c13de50 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -54,32 +54,6 @@ class OC_Helper { private static $templateManager; /** - * Creates an url for remote use - * @param string $service id - * @return string the url - * - * Returns a url to the given service. - */ - public static function linkToRemoteBase($service) { - return OC::$server->getURLGenerator()->linkTo('', 'remote.php') . '/' . $service; - } - - /** - * Creates an absolute url for remote use - * @param string $service id - * @param bool $add_slash - * @return string the url - * - * Returns a absolute url to the given service. - */ - public static function linkToRemote($service, $add_slash = true) { - return OC::$server->getURLGenerator()->getAbsoluteURL( - self::linkToRemoteBase($service) - . (($add_slash && $service[strlen($service) - 1] != '/') ? '/' : '') - ); - } - - /** * Creates an absolute url for public use * @param string $service id * @param bool $add_slash |