summaryrefslogtreecommitdiffstats
path: root/web/html/tu.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/html/tu.php
parent964ea083e68310ca7c09ca938219f4146f0ca5b9 (diff)
downloadaurweb-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/tu.php')
-rw-r--r--web/html/tu.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index 084a223..5e85e78 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -116,17 +116,17 @@ if ($atype == "Trusted User" || $atype == "Developer") {
$nextresult = proposal_count();
?>
<div class="box">
- <p><a href="<?php echo get_uri('/addvote/'); ?>"><?php print __("Add Proposal") ?></a></p>
+ <p><a href="<?= get_uri('/addvote/'); ?>"><?= __("Add Proposal") ?></a></p>
<?php if ($result):
$by = htmlentities($by, ENT_QUOTES); ?>
<?php if ($off != 0):
$back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
- <a href='<?php echo get_uri('/tu/'); ?>?off=<?php print $back ?>&amp;by=<?php print $by ?>'><?php print __("Back") ?></a>
+ <a href='<?= get_uri('/tu/'); ?>?off=<?= $back ?>&amp;by=<?= $by ?>'><?= __("Back") ?></a>
<?php endif; ?>
<?php if (($off + $limit) < $nextresult):
$forw = $off + $limit; ?>
- <a href="<?php echo get_uri('/tu/'); ?>?off=<?php print $forw ?>&amp;by=<?php print $by ?>"><?php print __("Next") ?></a>
+ <a href="<?= get_uri('/tu/'); ?>?off=<?= $forw ?>&amp;by=<?= $by ?>"><?= __("Next") ?></a>
<?php endif; ?>
<?php endif; ?>
</div>