Merge branch 'master' of ssh://p0m.fr:6224/git/nemubot_askweb
This commit is contained in:
commit
e0d31d291a
3 changed files with 30 additions and 51 deletions
|
|
@ -50,9 +50,15 @@ class Question
|
|||
return $q;
|
||||
}
|
||||
|
||||
public function regen_id()
|
||||
{
|
||||
$this->id = md5(time().$this->question.$this->validator);
|
||||
}
|
||||
|
||||
public function set_validator($val)
|
||||
{
|
||||
$this->validator = $val;
|
||||
$this->regen_id();
|
||||
}
|
||||
|
||||
public function get_validator()
|
||||
|
|
|
|||
Reference in a new issue