summaryrefslogtreecommitdiffstats
path: root/web/template/stats/user_table.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-09-21 08:57:29 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-24 12:23:04 +0200
commit6102759b7cb9fd23f4e7fa5f12137334ff30a410 (patch)
treefba81fdedea0dd6ca3f1e1bdd260fa55ebc36ee9 /web/template/stats/user_table.php
parent964ea083e68310ca7c09ca938219f4146f0ca5b9 (diff)
downloadaur-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/template/stats/user_table.php')
-rw-r--r--web/template/stats/user_table.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/template/stats/user_table.php b/web/template/stats/user_table.php
index 36207989..ba6751f4 100644
--- a/web/template/stats/user_table.php
+++ b/web/template/stats/user_table.php
@@ -2,20 +2,20 @@
$username = username_from_sid($_COOKIE["AURSID"]);
?>
-<h3><?php echo __("My Statistics"); ?></h3>
+<h3><?= __("My Statistics"); ?></h3>
<table>
<tr>
<td>
- <a href="<?php echo get_uri('/packages/'); ?>?SeB=m&amp;L=2&amp;K=<?php echo $username; ?>">
-<?php print __("Packages in unsupported"); ?></a>
+ <a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;L=2&amp;K=<?= $username; ?>">
+<?= __("Packages in unsupported"); ?></a>
</td>
- <td><?php print $maintainer_unsupported_count; ?></td>
+ <td><?= $maintainer_unsupported_count; ?></td>
</tr>
<tr>
<td>
- <a href="<?php echo get_uri('/packages/'); ?>?SeB=m&amp;outdated=on&amp;K=<?php echo $username; ?>"><?php print __("Out of Date"); ?></a>
+ <a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;outdated=on&amp;K=<?= $username; ?>"><?= __("Out of Date"); ?></a>
</td>
- <td><?php echo $flagged_outdated ?></td>
+ <td><?= $flagged_outdated ?></td>
</tr>
</table>