diff --git a/apps/calendar/templates/calendar.php b/apps/calendar/templates/calendar.php index 19c9a4d8d7..832194f0fe 100755 --- a/apps/calendar/templates/calendar.php +++ b/apps/calendar/templates/calendar.php @@ -19,7 +19,7 @@ var missing_field_totime = 't('To Time')) ?>'; var missing_field_startsbeforeends = 't('The event ends before it starts')) ?>'; var missing_field_dberror = 't('There was a database fail')) ?>'; - var totalurl = '/calendars'; + var totalurl = 'calendars'; var firstDay = ''; $(document).ready(function() { t('Calendar CalDAV syncing address:');?> -
+
diff --git a/apps/calendar/templates/share.dropdown.php b/apps/calendar/templates/share.dropdown.php index 0796a880f1..356a8d4fab 100755 --- a/apps/calendar/templates/share.dropdown.php +++ b/apps/calendar/templates/share.dropdown.php @@ -73,5 +73,5 @@ echo OCP\html_select_options($allgroups, array());
>
- -
\ No newline at end of file + + diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index 791e3ced26..7d212e71ba 100755 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -1,5 +1,5 @@ diff --git a/apps/contacts/templates/settings.php b/apps/contacts/templates/settings.php index ce14e52e0c..216003b6c6 100755 --- a/apps/contacts/templates/settings.php +++ b/apps/contacts/templates/settings.php @@ -4,9 +4,9 @@ t('CardDAV syncing addresses'); ?> (t('more info'); ?>)
t('Primary address (Kontact et al)'); ?>
-
+
t('iOS/OS X'); ?>
-
principals//
+
principals//
Powered by geonames.org webservice diff --git a/apps/media/lib_ampache.php b/apps/media/lib_ampache.php index 510aba3f7e..f5c91661ab 100755 --- a/apps/media/lib_ampache.php +++ b/apps/media/lib_ampache.php @@ -207,7 +207,7 @@ class OC_MEDIA_AMPACHE{ echo("\t\t$name\n"); echo("\t\t$artistName\n"); echo("\t\t$albumName\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\n"); echo("\t\t\n"); diff --git a/apps/media/templates/settings.php b/apps/media/templates/settings.php index 162b52b8d9..a7dc0775c4 100755 --- a/apps/media/templates/settings.php +++ b/apps/media/templates/settings.php @@ -2,6 +2,6 @@
Media
Ampache address: - /
+
diff --git a/index.php b/index.php index b0b77969c5..5d5307065b 100644 --- a/index.php +++ b/index.php @@ -44,7 +44,7 @@ if($not_installed) { // Handle WebDAV if($_SERVER['REQUEST_METHOD']=='PROPFIND'){ - header('location: '.OC_Helper::linkToAbsolute('remote.php','webdav/')); + header('location: '.OC_Helper::linkToRemote('webdav')); exit(); } diff --git a/lib/helper.php b/lib/helper.php index 757f562bfe..f5e247ca9e 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -105,6 +105,17 @@ class OC_Helper { return $urlLinkTo; } + /** + * @brief Creates an absolute url for remote use + * @param $service id + * @returns the url + * + * Returns a absolute url to the given service. + */ + public static function linkToRemote( $service ) { + return self::linkToAbsolute( '', 'remote.php') . '/' . $service . '/'; + } + /** * @brief Creates path to an image * @param $app app diff --git a/lib/public/util.php b/lib/public/util.php index 6a8adff0f5..f9f3759fe5 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -130,6 +130,18 @@ class Util { } + /** + * @brief Creates an absolute url for remote use + * @param $service id + * @returns the url + * + * Returns a absolute url to the given app and file. + */ + public static function linkToRemote( $service ) { + return(\OC_Helper::linkToRemote( $service )); + } + + /** * @brief Creates an url * @param $app app diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 799606e6a9..014996a5b2 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -47,7 +47,7 @@

WebDAV -
+
t('use this address to connect to your ownCloud in your file manager');?>