course/index.php is using sesskey.
Merged form MOODLE_14_STABLE
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?PHP //$Id$
|
||||
<?php //$Id$
|
||||
|
||||
class CourseBlock_admin extends MoodleBlock {
|
||||
function CourseBlock_admin($course) {
|
||||
@@ -32,7 +32,7 @@ class CourseBlock_admin extends MoodleBlock {
|
||||
|
||||
|
||||
function load_content_for_site() {
|
||||
global $CFG;
|
||||
global $CFG, $USER;
|
||||
|
||||
if (isadmin()) {
|
||||
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/configure.php">'.get_string('configuration').'</a>...';
|
||||
@@ -49,7 +49,7 @@ class CourseBlock_admin extends MoodleBlock {
|
||||
}
|
||||
|
||||
if (iscreator()) {
|
||||
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/index.php?edit=on">'.get_string('courses').'</a>';
|
||||
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/index.php?edit=on&sesskey='.$USER->sesskey.'">'.get_string('courses').'</a>';
|
||||
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/course.gif" height="16" width="16" alt="" />';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user