summaryrefslogtreecommitdiffstats
path: root/apps/contacts/templates
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-05-07 20:22:55 +0200
committerBart Visscher <bartv@thisnet.nl>2012-05-07 21:47:14 +0200
commit4dbc2093c680bebaa42f230937be88a58984c5bd (patch)
treef0d51daac5376fadab5d8f1147926842485af836 /apps/contacts/templates
parent9b5e0bebefd6c30c819d9830e79f3c07f0231d42 (diff)
downloadnextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.tar.gz
nextcloud-server-4dbc2093c680bebaa42f230937be88a58984c5bd.zip
Create a function for linking to remote.php
Diffstat (limited to 'apps/contacts/templates')
-rwxr-xr-xapps/contacts/templates/index.php2
-rwxr-xr-xapps/contacts/templates/settings.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php
index 791e3ced26c..7d212e71ba8 100755
--- a/apps/contacts/templates/index.php
+++ b/apps/contacts/templates/index.php
@@ -1,5 +1,5 @@
<script type='text/javascript'>
- var totalurl = '<?php echo OCP\Util::linkToAbsolute('remote.php', 'carddav'); ?>/addressbooks';
+ var totalurl = '<?php echo OCP\Util::linkToRemote('carddav'); ?>addressbooks';
var categories = <?php echo json_encode($_['categories']); ?>;
var lang = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en'); ?>';
</script>
diff --git a/apps/contacts/templates/settings.php b/apps/contacts/templates/settings.php
index ce14e52e0ce..216003b6c69 100755
--- a/apps/contacts/templates/settings.php
+++ b/apps/contacts/templates/settings.php
@@ -4,9 +4,9 @@
<?php echo $l->t('CardDAV syncing addresses'); ?> (<a href="http://owncloud.org/synchronisation/" target="_blank"><?php echo $l->t('more info'); ?></a>)
<dl>
<dt><?php echo $l->t('Primary address (Kontact et al)'); ?></dt>
- <dd><code><?php echo OCP\Util::linkToAbsolute('remote.php', 'carddav/'); ?></code></dd>
+ <dd><code><?php echo OCP\Util::linkToRemote('carddav'); ?></code></dd>
<dt><?php echo $l->t('iOS/OS X'); ?></dt>
- <dd><code><?php echo OCP\Util::linkToAbsolute('remote.php', 'carddav/'); ?>principals/<?php echo OCP\USER::getUser(); ?></code>/</dd>
+ <dd><code><?php echo OCP\Util::linkToRemote('carddav'); ?>principals/<?php echo OCP\USER::getUser(); ?></code>/</dd>
</dl>
Powered by <a href="http://geonames.org/" target="_blank">geonames.org webservice</a>
</fieldset>