Revize 2e9c98d3
Přidáno uživatelem David Raška před asi 9 roky(ů)
application/controllers/contacts.php | ||
---|---|---|
{
|
||
try
|
||
{
|
||
$this->send_verify_message($contact_model->id);
|
||
self::send_verify_message($contact_model->id);
|
||
status::success('Verification message have been successfully sent.');
|
||
}
|
||
catch (Exception $ex)
|
||
... | ... | |
{
|
||
try
|
||
{
|
||
$this->send_verify_message($contact_id);
|
||
self::send_verify_message($contact_id);
|
||
status::success('Verification message have been successfully sent.');
|
||
}
|
||
catch (Exception $ex)
|
||
... | ... | |
{
|
||
try
|
||
{
|
||
$this->send_verify_message($contact_id);
|
||
self::send_verify_message($contact_id);
|
||
status::success('Verification message have been successfully sent.');
|
||
}
|
||
catch (Exception $ex)
|
||
... | ... | |
* @param mixed $user_id
|
||
* @param mixed $contact_id
|
||
*/
|
||
public function send_verify_message($contact_id)
|
||
public static function send_verify_message($contact_id)
|
||
{
|
||
$contact_model = new Contact_Model($contact_id);
|
||
$message_model = new Message_Model();
|
application/controllers/members.php | ||
---|---|---|
{
|
||
try
|
||
{
|
||
$cc = new Contacts_Controller();
|
||
$cc->send_verify_message($contact_model->id);
|
||
Contacts_Controller::send_verify_message($contact_model->id);
|
||
status::success('Verification message have been successfully sent.');
|
||
}
|
||
catch (Exception $ex)
|
Také k dispozici: Unified diff
refs #908: Fixed brutal error (creating controller in controller)