Skip to content

Commit

Permalink
Merge pull request #522 from lwcorp/patch-2
Browse files Browse the repository at this point in the history
Accept $_GET parameters &list=x,y,z (or just &list=x) and &htmlemail=1
  • Loading branch information
samtuke committed May 23, 2019
2 parents 0609a30 + 790af30 commit 3ab5ba2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public_html/lists/admin/subscribelib2.php
Expand Up @@ -723,6 +723,10 @@ function ListAvailableLists($userid = 0, $lists_to_show = '')
global $tables;
if (isset($_POST['list'])) {
$list = $_POST['list'];
} elseif (!isset($_POST["subscribe"]) && isset($_GET['list'])) {
$list_value = "signup";
$list_values = explode(",", $_GET["list"]);
$list = array_fill_keys($list_values, $list_value);
} else {
$list = '';
}
Expand Down Expand Up @@ -903,6 +907,8 @@ function ListAttributes($attributes, $attributedata, $htmlchoice = 0, $userid =
}
if (isset($_POST['htmlemail'])) {
$htmlemail = $_POST['htmlemail'];
} elseif (!isset($_POST["subscribe"]) && isset($_GET['htmlemail'])) {
$htmlemail = $_GET["htmlemail"];
}
$data = array();
$current = array();
Expand Down

0 comments on commit 3ab5ba2

Please sign in to comment.