File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 17
17
api_not_allowed (true );
18
18
}
19
19
20
- $ interbreadcrumb [] = array ('url ' => 'work.php ' , 'name ' => get_lang ('StudentPublications ' ));
20
+
21
+ $ work ['title ' ] = isset ($ work ['title ' ]) ? Security::remove_XSS ($ work ['title ' ]) : '' ;
22
+ $ work ['description ' ] = isset ($ work ['description ' ]) ? Security::remove_XSS ($ work ['description ' ]) : '' ;
23
+
24
+ $ interbreadcrumb [] = array ('url ' => 'work.php? ' .api_get_self (), 'name ' => get_lang ('StudentPublications ' ));
21
25
22
26
$ my_folder_data = get_work_data_by_id ($ work ['parent_id ' ]);
23
27
$ courseInfo = api_get_course_info ();
37
41
)
38
42
) {
39
43
if ((api_is_allowed_to_edit () || api_is_coach ()) || api_is_drh ()) {
40
- $ url_dir = 'work_list_all.php?id= ' .$ my_folder_data ['id ' ];
44
+ $ url_dir = 'work_list_all.php?id= ' .$ my_folder_data ['id ' ]. ' & ' . api_get_cidreq () ;
41
45
} else {
42
- $ url_dir = 'work_list.php?id= ' .$ my_folder_data ['id ' ];
46
+ $ url_dir = 'work_list.php?id= ' .$ my_folder_data ['id ' ]. ' & ' . api_get_cidreq () ;
43
47
}
44
48
45
49
$ userInfo = api_get_user_info ($ work ['user_id ' ]);
99
103
$ commentForm = getWorkCommentForm ($ work );
100
104
101
105
$ tpl = new Template ();
106
+
102
107
$ tpl ->assign ('work ' , $ work );
103
108
$ tpl ->assign ('comments ' , $ comments );
104
109
You can’t perform that action at this time.
0 commit comments