Permalink
Browse files

added support for specifying the module type to login box

  • Loading branch information...
1 parent edec092 commit f334f8ce79bae2f996920891948168e10503bf6c @cash cash committed Oct 30, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 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 @@
$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);

0 comments on commit f334f8c

Please sign in to comment.