diff options
author | Andrew Dolgov <[email protected]> | 2021-02-16 18:42:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-16 18:42:20 +0300 |
commit | ca12147616cf5e6dccc1ac23d1f820dbc7e06a22 (patch) | |
tree | 8e285ea26d5449a8a1adeba8a41a9c2a020481fc | |
parent | e9d3c50425f9cce2404ba93581df6ae321692496 (diff) |
updates for core changes
-rw-r--r-- | init.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |