mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
964ea083e6
commit
6102759b7c
26 changed files with 368 additions and 366 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue