mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
Enhance poll v.2
https://github.com/xetown/xe-core/issues/24 - multilangual support - methods names - some enhancements
This commit is contained in:
parent
563ba0f753
commit
f870b768ac
6 changed files with 54 additions and 16 deletions
|
|
@ -118,7 +118,6 @@ class pollController extends poll
|
|||
$poll_args->poll_type = $vars->show_vote + $vars->add_item;
|
||||
|
||||
$output = executeQuery('poll.insertPoll', $poll_args);
|
||||
debugPrint($output);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
|
|
@ -190,7 +189,7 @@ class pollController extends poll
|
|||
if(!$output->data) return new Object(-1,"poll_no_poll_or_deleted_poll");
|
||||
$type = $output->data->poll_type;
|
||||
|
||||
if(!$this->isCanAddItem($type)) return new Object(-1,"msg_cannot_add_item");
|
||||
if(!$this->isAbletoAddItem($type)) return new Object(-1,"msg_cannot_add_item");
|
||||
|
||||
if($logged_info->is_admin != 'Y')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue