Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/comments_threads.php | ||
---|---|---|
|
||
// creates model name
|
||
$model = ucfirst($type) . '_Model';
|
||
|
||
|
||
// this model doesn't exist
|
||
if (!class_exists($model))
|
||
Controller::error(RECORD);
|
||
... | ... | |
$object->comments_thread_id = $comments_thread->id;
|
||
$object->save();
|
||
}
|
||
|
||
url::redirect('comments/add/' . $object->comments_thread_id);
|
||
|
||
Comments_Controller::add($object->comments_thread_id);
|
||
}
|
||
|
||
}
|
Také k dispozici: Unified diff
Release 1.1.0