mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-16164 improved use of forms in notes code and some other minor cleanup
This commit is contained in:
parent
5b4b959b5a
commit
241bcec5fa
6 changed files with 50 additions and 136 deletions
|
@ -51,7 +51,7 @@
|
|||
}
|
||||
|
||||
/// require login to access notes
|
||||
require_login($course->id);
|
||||
require_login($course);
|
||||
add_to_log($courseid, 'notes', 'view', 'index.php?course='.$courseid.'&user='.$userid, 'view notes');
|
||||
|
||||
|
||||
|
@ -77,7 +77,7 @@
|
|||
|
||||
$showroles = 1;
|
||||
$currenttab = 'notes';
|
||||
require_once($CFG->dirroot .'/user/tabs.php');
|
||||
require($CFG->dirroot .'/user/tabs.php');
|
||||
|
||||
$strsitenotes = get_string('sitenotes', 'notes');
|
||||
$strcoursenotes = get_string('coursenotes', 'notes');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue