From 91c826322ee99496a223a90c732445f5c8f7e05b Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Sun, 3 Nov 2013 15:33:11 +0100 Subject: [PATCH] typo and strict php warning fixe --- materio_user.module | 3 ++- materio_user.pages.inc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/materio_user.module b/materio_user.module index c38fe312..280e90c3 100755 --- a/materio_user.module +++ b/materio_user.module @@ -115,7 +115,8 @@ function materio_user_block_view($delta = '') { if(isset($user->roles[1])){ $block['subject'] = '';//drupal_is_front_page() ? t('Your projects will born from here') : t('Create your materiO\' account'); $block['content'] = '

'. t('Login') . '

'; - $block['content'] .= drupal_render(drupal_get_form('user_login')); + $ulog_form = drupal_get_form('user_login'); + $block['content'] .= drupal_render($ulog_form); if (drupal_is_front_page()) { $block['content'] .= '

'. t('or create your materiO\' account') . '

'; $block['content'] .= l(t('Join us'), 'node/11187', array("attributes"=>array("class"=>array("join")))); diff --git a/materio_user.pages.inc b/materio_user.pages.inc index 0505c9bb..5ca522a5 100644 --- a/materio_user.pages.inc +++ b/materio_user.pages.inc @@ -29,7 +29,7 @@ function materio_user_register_submit(){ }else{ $messages = drupal_get_messages('status'); // $return['messages'] = $messages; - drupal_set_message(t("Congratulation, you juste created your free materiO' account, welcome !"), 'status'); + drupal_set_message(t("Congratulations, you juste created your free materiO' account, welcome !"), 'status'); foreach ($messages['status'] as $msg) { drupal_set_message($msg, 'status'); }