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/template/pkg_comment_form.php | |
parent | 964ea083e68310ca7c09ca938219f4146f0ca5b9 (diff) | |
download | aurweb-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/template/pkg_comment_form.php')
-rw-r--r-- | web/template/pkg_comment_form.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php index fb3ebff..9315b0a 100644 --- a/web/template/pkg_comment_form.php +++ b/web/template/pkg_comment_form.php @@ -1,6 +1,6 @@ <div id="generic-form" class="box"> - <h2><?php echo __("Add Comment"); ?></h2> - <form call="general-form" action="<?php echo $_SERVER['REQUEST_URI'] ?>" method="post"> + <h2><?= __("Add Comment"); ?></h2> + <form call="general-form" action="<?= $_SERVER['REQUEST_URI'] ?>" method="post"> <fieldset> <?php if (isset($_REQUEST['comment']) && check_token()) { @@ -8,16 +8,16 @@ if (isset($_REQUEST['comment']) && check_token()) { } ?> <div> - <input type="hidden" name="ID" value="<?php echo intval($row['ID']) ?>" /> - <input type="hidden" name="token" value="<?php echo htmlspecialchars($_COOKIE['AURSID']) ?>" /> + <input type="hidden" name="ID" value="<?= intval($row['ID']) ?>" /> + <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> </div> <p> - <label for="id_comment"><?php echo __("Comment") . ':' ?></label> + <label for="id_comment"><?= __("Comment") . ':' ?></label> <textarea id="id_comment" name="comment" cols="80" rows="10"></textarea> </p> <p> <label></label> - <input type="submit" value="<?php echo __("Add Comment") ?>" /> + <input type="submit" value="<?= __("Add Comment") ?>" /> </p> </fieldset> </form> |