diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-05-07 20:22:55 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-05-07 21:47:14 +0200 |
commit | 4dbc2093c680bebaa42f230937be88a58984c5bd (patch) | |
tree | f0d51daac5376fadab5d8f1147926842485af836 /apps/media | |
parent | 9b5e0bebefd6c30c819d9830e79f3c07f0231d42 (diff) | |
download | nextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.tar.gz nextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.zip |
Create a function for linking to remote.php
Diffstat (limited to 'apps/media')
-rwxr-xr-x | apps/media/lib_ampache.php | 2 | ||||
-rwxr-xr-x | apps/media/templates/settings.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/media/lib_ampache.php b/apps/media/lib_ampache.php index 510aba3f7e7..f5c91661abe 100755 --- a/apps/media/lib_ampache.php +++ b/apps/media/lib_ampache.php @@ -207,7 +207,7 @@ class OC_MEDIA_AMPACHE{ echo("\t\t<title>$name</title>\n"); echo("\t\t<artist id='$artist'>$artistName</artist>\n"); echo("\t\t<album id='$album'>$albumName</album>\n"); - $url=OCP\Util::linkToAbsolute('remote.php', 'ampache/server/xml.server.php/')."?action=play&song=$id&auth={$_GET['auth']}"; + $url=OCP\Util::linkToRemote('ampache')."server/xml.server.php/?action=play&song=$id&auth={$_GET['auth']}"; $url=self::fixXmlString($url); echo("\t\t<url>$url</url>\n"); echo("\t\t<time>{$song['song_length']}</time>\n"); diff --git a/apps/media/templates/settings.php b/apps/media/templates/settings.php index 162b52b8d9b..a7dc0775c44 100755 --- a/apps/media/templates/settings.php +++ b/apps/media/templates/settings.php @@ -2,6 +2,6 @@ <fieldset class="personalblock"> <strong>Media</strong><br /> Ampache address: - <code><?php echo OCP\Util::linkToAbsolute('remote.php', 'ampache'); ?>/</code><br /> + <code><?php echo OCP\Util::linkToRemote('ampache'); ?></code><br /> </fieldset> </form> |