summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-08-12 08:29:23 +0300
committerAndrew Dolgov <[email protected]>2015-08-12 08:29:23 +0300
commitbe2cfc1fff8792715e059249939a1a798779d777 (patch)
treee92b56f38f30af15c6dff677ca22fb8fe0190920 /include/functions.php
parent90da4ada664443704dca6119c12bb7ecccb48aa9 (diff)
parentb87744534a5250e9f839997f8eceb5b86b8c0e5c (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/functions.php b/include/functions.php
index d90855ea6..6d183abaa 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1,6 +1,6 @@
<?php
define('EXPECTED_CONFIG_VERSION', 26);
- define('SCHEMA_VERSION', 128);
+ define('SCHEMA_VERSION', 129);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);
@@ -580,8 +580,10 @@
}
}
- function print_select($id, $default, $values, $attributes = "") {
- print "<select name=\"$id\" id=\"$id\" $attributes>";
+ function print_select($id, $default, $values, $attributes = "", $name = "") {
+ if (!$name) $name = $id;
+
+ print "<select name=\"$name\" id=\"$id\" $attributes>";
foreach ($values as $v) {
if ($v == $default)
$sel = "selected=\"1\"";
@@ -595,8 +597,10 @@
print "</select>";
}
- function print_select_hash($id, $default, $values, $attributes = "") {
- print "<select name=\"$id\" id='$id' $attributes>";
+ function print_select_hash($id, $default, $values, $attributes = "", $name = "") {
+ if (!$name) $name = $id;
+
+ print "<select name=\"$name\" id='$id' $attributes>";
foreach (array_keys($values) as $v) {
if ($v == $default)
$sel = 'selected="selected"';