diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-21 08:57:29 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-24 12:23:04 +0200 |
commit | 6102759b7cb9fd23f4e7fa5f12137334ff30a410 (patch) | |
tree | fba81fdedea0dd6ca3f1e1bdd260fa55ebc36ee9 /web/html/passreset.php | |
parent | 964ea083e68310ca7c09ca938219f4146f0ca5b9 (diff) | |
download | aur-6102759b7cb9fd23f4e7fa5f12137334ff30a410.tar.gz aur-6102759b7cb9fd23f4e7fa5f12137334ff30a410.tar.xz |
Use echo shortcut syntax
Replace all occurrences of "<?php echo" and "<?php print" by "<?=" to
reduce noise in templates.
Note that as of PHP 5.4.0, "<?=" is always available and no longer
requires "short_open_tag" to be set.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/passreset.php')
-rw-r--r-- | web/html/passreset.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/html/passreset.php b/web/html/passreset.php index 9fca5050..13697b97 100644 --- a/web/html/passreset.php +++ b/web/html/passreset.php @@ -66,10 +66,10 @@ html_header(__("Password Reset")); ?> <div class="box"> - <h2><?php print __("Password Reset"); ?></h2> + <h2><?= __("Password Reset"); ?></h2> <?php if ($error): ?> - <p><span class="error"><?php echo $error ?></span></p> + <p><span class="error"><?= $error ?></span></p> <?php endif;?> <?php if ($step == 'confirm') { @@ -81,31 +81,31 @@ html_header(__("Password Reset")); <form action="" method="post"> <table> <tr> - <td><?php echo __("Confirm your e-mail address:"); ?></td> + <td><?= __("Confirm your e-mail address:"); ?></td> <td><input type="text" name="email" size="30" maxlength="64" /></td> </tr> <tr> - <td><?php echo __("Enter your new password:"); ?></td> + <td><?= __("Enter your new password:"); ?></td> <td><input type="password" name="password" size="30" maxlength="32" /></td> </tr> <tr> - <td><?php echo __("Confirm your new password:"); ?></td> + <td><?= __("Confirm your new password:"); ?></td> <td><input type="password" name="confirm" size="30" maxlength="32" /></td> </tr> </table> <br /> - <input type="submit" class="button" value="<?php echo __('Continue') ?>" /> + <input type="submit" class="button" value="<?= __('Continue') ?>" /> </form> <?php } else { ?> - <p><?php echo __('If you have forgotten the e-mail address you used to register, please send a message to the %saur-general%s mailing list.', + <p><?= __('If you have forgotten the e-mail address you used to register, please send a message to the %saur-general%s mailing list.', '<a href="http://mailman.archlinux.org/mailman/listinfo/aur-general">', '</a>'); ?></p> <form action="" method="post"> - <p><?php echo __("Enter your e-mail address:"); ?> + <p><?= __("Enter your e-mail address:"); ?> <input type="text" name="email" size="30" maxlength="64" /></p> - <input type="submit" class="button" value="<?php echo __('Continue') ?>" /> + <input type="submit" class="button" value="<?= __('Continue') ?>" /> </form> <?php } ?> </div> |