diff options
author | cash <cash.costello@gmail.com> | 2011-10-30 18:13:19 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-30 18:13:19 -0400 |
commit | f334f8ce79bae2f996920891948168e10503bf6c (patch) | |
tree | db92f45eaf442249c52b36cdaf18c2a43a6eaf75 | |
parent | edec092e1aa616561063214a66620f9b6852875d (diff) | |
download | elgg-f334f8ce79bae2f996920891948168e10503bf6c.tar.gz elgg-f334f8ce79bae2f996920891948168e10503bf6c.tar.bz2 |
added support for specifying the module type to login box
-rw-r--r-- | views/default/core/account/login_box.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/default/core/account/login_box.php b/views/default/core/account/login_box.php index 8c586d425..f39113653 100644 --- a/views/default/core/account/login_box.php +++ b/views/default/core/account/login_box.php @@ -4,8 +4,12 @@ * * @package Elgg * @subpackage Core + * + * @uses $vars['module'] The module name. Default: aside */ +$module = elgg_extract('module', $vars, 'aside'); + $login_url = elgg_get_site_url(); if (elgg_get_config('https_login')) { $login_url = str_replace("http:", "https:", $login_url); @@ -14,4 +18,4 @@ if (elgg_get_config('https_login')) { $title = elgg_echo('login'); $body = elgg_view_form('login', array('action' => "{$login_url}action/login")); -echo elgg_view_module('aside', $title, $body); +echo elgg_view_module($module, $title, $body); |