From: Bartosz DziewoƄski Date: Wed, 16 Oct 2013 16:24:12 +0000 (+0200) Subject: Reindent UsercreateTemplate and UserloginTemplate X-Git-Tag: 1.31.0-rc.0~17933^2~3 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=ed184ad0e5207287e9be7802a69fcb74946fe9cd;p=lhc%2Fweb%2Fwiklou.git Reindent UsercreateTemplate and UserloginTemplate A perceptive reviewer will note several issues with this code, including at least one outright bug. I intend to fix them in subsequent commit; I tried to avoid any non-whitespace changes here to make it at all possible to review this. This file has several lines longer than the phpcs limit of 100 characters, and several cases of the pattern phpcs complains about. I don't think it makes sense to enforce these rules here; the code would IMO become less readable. Change-Id: I95ab0f644fd5963878018f483f22e650867b5135 --- diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php index 50dfaecb47..a7c0a45c0f 100644 --- a/includes/templates/Usercreate.php +++ b/includes/templates/Usercreate.php @@ -46,245 +46,242 @@ class UsercreateTemplate extends BaseTemplate { $expirationDays = ceil( $wgCookieExpiration / ( 3600 * 24 ) ); ?>
- haveData( 'languages' ) ) { - ?> + haveData( 'languages' ) ) { ?> - -
-

- msg( $this->data['loggedin'] ? - 'createacct-another-join' : 'createacct-join' ); - ?> -

-
-
- html( 'header' ); /* extensions such as ConfirmEdit add form HTML here */ ?> -
- data['message'] ) { -?> -
- data['messagetype'] == 'error' ) { ?> - msg( 'createacct-error' ); ?>
- - html( 'message' ); ?> -
-
-