diff --git a/e107_plugins/poll/admin_config.php b/e107_plugins/poll/admin_config.php index 0d686bf6b..e343201f6 100644 --- a/e107_plugins/poll/admin_config.php +++ b/e107_plugins/poll/admin_config.php @@ -54,7 +54,7 @@ if (isset($_POST['submit'])) if($_POST['poll_title']) { define("POLLID",$_POST['poll_id']); - $poll -> submit_poll(); + $poll->submit_poll(); $mes->addSuccess(LAN_CREATED); unset($_POST['poll_title'], $_POST['poll_option'], $_POST['activate'], $_POST['poll_comment']); } @@ -82,9 +82,9 @@ if (varset($_POST['edit']) || varset($_GET['mode'])=='create' && !varset($_POST[ define("POLLACTION",'edit'); } - $poll_total = $sql->db_Select("polls"); + $poll_total = $sql->select("polls"); $text = $poll -> renderPollForm(); - $ns->tablerender(POLLAN_MENU_CAPTION." - ".POLLAN_2, $mes->render() . $text); + $ns->tablerender(POLLAN_MENU_CAPTION.SEP.POLLAN_2, $mes->render() . $text); } @@ -101,11 +101,11 @@ function edit_poll() $sql = e107::getDb(); $id = key($_POST['edit']); - if ($sql->db_Select("polls", "*", "poll_id=".$id)) + if ($sql->select("polls", "*", "poll_id=".$id)) { $_GET['mode'] = 'create'; - $row = $sql->db_Fetch(); - extract($row); + $row = $sql->fetch(); + extract($row); // FIXME $tmpArray = explode(chr(1), $poll_options); @@ -177,14 +177,14 @@ function poll_list() $text = "