Browse Source
- Remove the AccountError widget
- Remove the AccountError widget
- Fix the account registration - Add a test on the anonymous room page when the room is not set - Fix the search placeholder on Chromepull/16/head
8 changed files with 18 additions and 112 deletions
-
91app/widgets/AccountError/AccountError.php
-
1app/widgets/AccountError/accounterror.tpl
-
10app/widgets/AccountError/locales.ini
-
6app/widgets/AccountNext/AccountNext.php
-
8app/widgets/Rooms/_rooms.tpl
-
1app/widgets/Rooms/locales.ini
-
8linker.php
-
5themes/material/css/form.css
@ -1,91 +0,0 @@ |
|||
<?php |
|||
|
|||
/** |
|||
* @package Widgets |
|||
* |
|||
* @file AccountError.php |
|||
* This file is part of MOVIM. |
|||
* |
|||
* @brief The account creation widget error. |
|||
* |
|||
* @author Timothée Jaussoin <edhelas@gmail.com> |
|||
* |
|||
* @version 1.0 |
|||
* @date 25 November 2011 |
|||
* |
|||
* Copyright (C)2010 MOVIM project |
|||
* |
|||
* See COPYING for licensing information. |
|||
*/ |
|||
|
|||
class AccountError extends WidgetBase { |
|||
|
|||
function load() |
|||
{ |
|||
} |
|||
|
|||
function display() |
|||
{ |
|||
$warning = ''; |
|||
|
|||
if(isset($_GET['err'])) |
|||
switch ($_GET['err']) { |
|||
case 'datamissing': |
|||
$warning = ' |
|||
<div class="message warning"> |
|||
'.$this->__('error.data_missing').' |
|||
</div> '; |
|||
break; |
|||
case 'jiderror': |
|||
$warning = ' |
|||
<div class="message warning"> |
|||
'.$this->__('error.jid_error').' |
|||
</div> '; |
|||
break; |
|||
case 'passworddiff': |
|||
$warning = ' |
|||
<div class="message info"> |
|||
'.$this->__('error.password_diff').' |
|||
</div> '; |
|||
break; |
|||
case 'nameerr': |
|||
$warning = ' |
|||
<div class="message warning"> |
|||
'.$this->__('error.name_error').' |
|||
</div> '; |
|||
break; |
|||
case 'notacceptable': |
|||
$warning = ' |
|||
<div class="message error"> |
|||
'.$this->__('error.not_acceptable').' |
|||
</div> '; |
|||
break; |
|||
case 'userconflict': |
|||
$warning = ' |
|||
<div class="message warning"> |
|||
'.$this->__('error.user_conflict').' |
|||
</div> '; |
|||
break; |
|||
case 'xmppconnect': |
|||
$warning = ' |
|||
<div class="message error"> |
|||
'.$this->__('error.xmpp_connect').' |
|||
</div> '; |
|||
break; |
|||
case 'xmppcomm': |
|||
$warning = ' |
|||
<div class="message error"> |
|||
'.$this->__('error.xmpp_communicate').' |
|||
</div> '; |
|||
break; |
|||
case 'unknown': |
|||
$warning = ' |
|||
<div class="message error"> |
|||
'.$this->__('error.unknown').' |
|||
</div> '; |
|||
break; |
|||
} |
|||
|
|||
$this->view->assign('warning', $warning); |
|||
} |
|||
} |
@ -1 +0,0 @@ |
|||
{$warning} |
@ -1,10 +0,0 @@ |
|||
error.data_missing = 'Some data are missing !' |
|||
error.jid_error = 'Wrong ID' |
|||
error.password_diff = 'You entered different passwords' |
|||
error.name_error = 'Invalid name' |
|||
error.not_acceptable = 'Request not acceptable' |
|||
error.user_conflict = 'Username already taken' |
|||
error.xmpp_connect = 'Could not connect to the XMPP server' |
|||
error.xmpp_communicate = 'Could not communicate with the XMPP server' |
|||
error.unknown = 'Unknown error' |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue