Revize f05d950e
Přidáno uživatelem Ondřej Fibich před více než 5 roky(ů)
application/controllers/users.php | ||
---|---|---|
*/
|
||
public function show_work ($work_id = NULL)
|
||
{
|
||
Works_Controller::show ($work_id);
|
||
$controller = new Works_Controller();
|
||
$controller->show($work_id);
|
||
}
|
||
|
||
/**
|
||
... | ... | |
*/
|
||
public function show_work_report ($work_report_id = NULL)
|
||
{
|
||
Work_reports_Controller::show ($work_report_id);
|
||
$controller = new Work_reports_Controller();
|
||
$controller->show($work_report_id);
|
||
}
|
||
|
||
/**
|
||
... | ... | |
*/
|
||
public function show_request ($request_id = NULL)
|
||
{
|
||
Requests_Controller::show ($request_id);
|
||
$controller = new Requests_Controller();
|
||
$controller->show($request_id);
|
||
}
|
||
|
||
/**
|
Také k dispozici: Unified diff
Refs #1110: Fix showing works/work reports/request from user detail on PHP 7.0 >=. Fix is done by creating sub-controllers instead of static calls to them. Support of creating sub-controllers with shared resources was introduced to MY_Controller.