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/pkgsubmit.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/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index b2a26f78..ffbc1c95 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -436,12 +436,12 @@ html_header("Submit"); ?> <?php if ($error): ?> - <p class="pkgoutput"><?php print $error ?></p> + <p class="pkgoutput"><?= $error ?></p> <?php endif; ?> <div class="box"> - <h2><?php echo __("Submit"); ?></h2> - <p><?php echo __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p> + <h2><?= __("Submit"); ?></h2> + <p><?= __("Upload your source packages here. Create source packages with `makepkg --source`.") ?></p> <?php if (empty($_REQUEST['pkgsubmit']) || $error): @@ -452,16 +452,16 @@ html_header("Submit"); $pkg_categories = pkgCategories(); ?> -<form action="<?php echo get_uri('/submit/'); ?>" method="post" enctype="multipart/form-data"> +<form action="<?= get_uri('/submit/'); ?>" method="post" enctype="multipart/form-data"> <fieldset> <div> <input type="hidden" name="pkgsubmit" value="1" /> - <input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" /> + <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> </div> <p> - <label for="id_category"><?php print __("Package Category"); ?>:</label> + <label for="id_category"><?= __("Package Category"); ?>:</label> <select id="id_category" name="category"> - <option value="1"><?php print __("Select Category"); ?></option> + <option value="1"><?= __("Select Category"); ?></option> <?php foreach ($pkg_categories as $num => $cat): print '<option value="' . $num . '"'; @@ -474,12 +474,12 @@ html_header("Submit"); </select> </p> <p> - <label for="id_file"><?php print __("Upload package file"); ?>:</label> + <label for="id_file"><?= __("Upload package file"); ?>:</label> <input id="id_file" type="file" name="pfile" size='30' /> </p> <p> <label></label> - <input class="button" type="submit" value="<?php print __("Upload"); ?>" /> + <input class="button" type="submit" value="<?= __("Upload"); ?>" /> </p> </fieldset> </form> |