]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use OC_Helper::serverHost() in openid settings
authorDaniele E. Domenichelli <daniele.domenichelli@gmail.com>
Thu, 12 Apr 2012 12:40:49 +0000 (14:40 +0200)
committerRobin Appelman <icewind@owncloud.com>
Thu, 12 Apr 2012 15:51:17 +0000 (17:51 +0200)
apps/user_openid/templates/settings.php

index 7c742030ce38b00f57723c6a292692401fe1b945..24dfaa1789188a2b49bfdb6585258663057f33ec 100644 (file)
@@ -1,7 +1,7 @@
 <form id="openidform">
        <fieldset class="personalblock">
                <strong>OpenID</strong>
-               <?php echo ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/?'; echo OC_User::getUser(); ?><br /><em><?php echo $l->t('you can authenticate to other sites with this address');?></em><br />
+               <?php echo ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.OC_Helper::serverHost().OC::$WEBROOT.'/?'; echo OC_User::getUser(); ?><br /><em><?php echo $l->t('you can authenticate to other sites with this address');?></em><br />
                <label for="identity"><?php echo $l->t('Authorized OpenID provider');?></label>
                <input type="text" name="identity" id="identity" value="<?php echo $_['identity']; ?>" placeholder="<?php echo $l->t('Your address at Wordpress, Identi.ca, &hellip;');?>" /><span class="msg"></span>
        </fieldset>