aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/account/forms/login.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/default/account/forms/login.php b/views/default/account/forms/login.php
index de8eb5ad9..105c4499d 100644
--- a/views/default/account/forms/login.php
+++ b/views/default/account/forms/login.php
@@ -10,7 +10,8 @@
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*/
-
+
+ global $CONFIG;
?>
<div id="login-box"> <h2><?php echo elgg_echo('login'); ?></h2>
@@ -19,6 +20,6 @@
<br />
<label><?php echo elgg_echo('password'); ?><br /><input name="password" type="password" class="general-textarea" /></label><br />
<input type="submit" name="submit" class="submit_button" value="<?php echo elgg_echo('login'); ?>" /></p>
- <p><a href="<?php echo $vars['url']; ?>register.php"><?php echo elgg_echo('register'); ?></a></p>
+ <?php if (!$CONFIG->disable_registration) { ?><p><a href="<?php echo $vars['url']; ?>register.php"><?php echo elgg_echo('register'); ?></a></p><?php } ?>
</form>
</div> \ No newline at end of file