The only buttons on the actions bar that were still used when virtual URLs
are enabled were the package deletion and package merging. These now reside
in separate pages, so remove the need for the actions bar when virtual URLs
are enabled.

Signed-off-by: canyonknight <canyonkni...@gmail.com>
---
 web/template/actions_form.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/web/template/actions_form.php b/web/template/actions_form.php
index 650c6c6..c5abbb3 100644
--- a/web/template/actions_form.php
+++ b/web/template/actions_form.php
@@ -1,4 +1,4 @@
-<?php if (!$USE_VIRTUAL_URLS || $atype == "Trusted User" || $atype == 
"Developer" ): ?>
+<?php if (!$USE_VIRTUAL_URLS): ?>
 <div class="box">
        <form action="<?= htmlspecialchars(get_pkg_uri($row['Name']), 
ENT_QUOTES); ?>" method="post">
                <fieldset>
@@ -6,7 +6,6 @@
                        <input type="hidden" name="ID" value="<?= $row['ID'] 
?>" />
                        <input type="hidden" name="token" value="<?= 
htmlspecialchars($_COOKIE['AURSID']) ?>" />
 
-               <?php if (!$USE_VIRTUAL_URLS): ?>
                <?php if (user_voted($uid, $row['ID'])): ?>
                        <input type="submit" class="button" name="do_UnVote" 
value="<?= __("UnVote") ?>" />
                <?php else: ?>
@@ -25,7 +24,6 @@
                ($uid == $row["MaintainerUID"] || $atype == "Trusted User" || 
$atype == "Developer")): ?>
                        <input type="submit" class="button" name="do_UnFlag" 
value="<?= __("UnFlag Out-of-date") ?>" />
                <?php endif; ?>
-               <?php endif; ?>
                        
                <?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
                        <input type="submit" class="button" name="do_Delete" 
value="<?= __("Delete Packages") ?>" />
-- 
1.7.12.1

Reply via email to