Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Filters add action parameter only if available

givanz5e49251e6baa
diff --git a/admin/template/filters.tpl b/admin/template/filters.tpl
old mode 100755
new mode 100644
index 209c492..626aaf6
--- a/admin/template/filters.tpl
+++ b/admin/template/filters.tpl
@@ -1,6 +1,8 @@
-input[name="module"]|value = <?php echo htmlspecialchars(Vvveb\get('module'));?>
-input[name="action"]|value = <?php echo htmlspecialchars(Vvveb\get('action'));?>
-input[name="type"]|value = <?php echo htmlspecialchars(Vvveb\get('type'));?>
+#filters input[name="module"]|value = <?php echo htmlspecialchars(Vvveb\get('module'));?>
+#filters input[name="action"]|before = <?php $action = Vvveb\get('action');if ($action) {?>
+#filters input[name="action"]|value = <?php echo htmlspecialchars(Vvveb\get('action'));?>
+#filters input[name="action"]|after = <?php } ?>
+#filters input[name="type"]|value = <?php echo htmlspecialchars(Vvveb\get('type'));?>
#filters|addClass = <?php if ($this->filter) echo 'show';?>
#filters input[type="text"],#filters input[type="search"]|value = <?php