summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-16 18:42:20 +0300
committerAndrew Dolgov <[email protected]>2021-02-16 18:42:20 +0300
commitca12147616cf5e6dccc1ac23d1f820dbc7e06a22 (patch)
tree8e285ea26d5449a8a1adeba8a41a9c2a020481fc
parente9d3c50425f9cce2404ba93581df6ae321692496 (diff)
updates for core changes
-rw-r--r--init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.php b/init.php
index 0794fa6..d907e8b 100644
--- a/init.php
+++ b/init.php
@@ -98,7 +98,7 @@ class VF_Search extends Plugin {
print "<textarea dojoType='dijit.form.SimpleTextarea' rows='4' name='searches'>$searches</textarea>";
print "</fieldset>";
- print_button("submit", "Save", "class='alt-primary'");
+ print \Controls\submit_tag("Save");
print "</form>";
@@ -106,7 +106,7 @@ class VF_Search extends Plugin {
}
function save() {
- $searches = $_POST["searches"];
+ $searches = ($_POST["searches"] ?? "");
$this->host->set($this, "searches", $searches);