MDL-9742 - changed tabs to spaces in a few places where there are one

or two
This commit is contained in:
poltawski 2007-05-08 15:07:25 +00:00
parent 3ef1be377b
commit a044c05ddb
24 changed files with 85 additions and 85 deletions

View file

@ -39,7 +39,7 @@
}
if ($download <> "xls" and $download <> "txt" and $download <> "ods") {
$crumbs[] = array('name' => $strchoices, 'link' => "index.php?id=$course->id", 'type' => 'activity');
$crumbs[] = array('name' => format_string($choice->name), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
$crumbs[] = array('name' => $strresponses, 'link' => '', 'type' => 'title');

View file

@ -1877,10 +1877,10 @@ function forum_subscribed_users($course, $forum, $groupid=0, $cache=false) {
AND u.deleted <> 1 $groupselect
ORDER BY u.email ASC");
}
// Guest user should never be subscribed to a forum.
if ($guest = guest_user()) {
unset($results[$guest->id]);
}
// Guest user should never be subscribed to a forum.
if ($guest = guest_user()) {
unset($results[$guest->id]);
}
if ($cache) {
$resultscache[$forum->id][$groupid] = $results;

View file

@ -135,7 +135,7 @@
}
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
$modcontext = get_context_instance(CONTEXT_MODULE, $forum->id);
$modcontext = get_context_instance(CONTEXT_MODULE, $forum->id);
if (! forum_user_can_post($forum)) {
if (has_capability('moodle/legacy:guest', $coursecontext, NULL, false)) { // User is a guest here!
@ -151,8 +151,8 @@
if (groupmode($course, $cm)) { // Make sure user can post here
$mygroupid = mygroupid($course->id);
if (!((empty($mygroupid) and $discussion->groupid == -1)
|| (ismember($discussion->groupid)/*$mygroupid == $discussion->groupid*/)
|| has_capability('moodle/site:accessallgroups', $modcontext, NULL, false) )) {
|| (ismember($discussion->groupid)/*$mygroupid == $discussion->groupid*/)
|| has_capability('moodle/site:accessallgroups', $modcontext, NULL, false) )) {
print_error('nopostdiscussion', 'forum');
}
}

View file

@ -49,7 +49,7 @@
$CFG->framename = "newwindow";
if ($course->id != SITEID) {
$crumbs[] = array('name' => $strglossaries, 'link' => '', 'type' => 'activity');
$crumbs[] = array('name' => $strglossaries, 'link' => '', 'type' => 'activity');
$crumbs[] = array('name' => $strsearch, 'link' => '', 'type' => 'title');
$navigation = build_navigation($crumbs);

View file

@ -63,7 +63,7 @@
if ($inpopup) {
print_header($pagetitle, $course->fullname);
} else {
$resource_obj->crumbs[] = array('name' => format_string($resource->name), 'link' => '', 'type' => 'activityinstance');
$resource_obj->crumbs[] = array('name' => $strdeploy, 'link' => '', 'type' => 'action');
$navigation = build_navigation($resource_obj->crumbs);

View file

@ -371,7 +371,7 @@ class resource_ims extends resource_base {
if ($inpopup) {
print_header($pagetitle, $course->fullname.' : '.$resource->name);
} else {
$this->crumbs[] = array('name' => format_string($resource->name), 'link' => '', 'type' => 'activityinstance');
$this->navigation = build_navigation($this->crumbs);
@ -473,7 +473,7 @@ class resource_ims extends resource_base {
//print_header($pagetitle, $course->fullname.' : '.$resource->name);
print_header();
} else {
$this->crumbs[] = array('name' => format_string($resource->name), 'link' => '', 'type' => 'activityinstance');
$this->crumbs[] = array('name' => format_string($resource->name), 'link' => '', 'type' => 'activityinstance');
$this->navigation = build_navigation($this->crumbs);
print_header($pagetitle, $course->fullname, $this->navigation, "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent"));
}

View file

@ -29,7 +29,7 @@
if(count($actions)==2) {
$pagename=$actions[1];
} else {
$pagename=$actions[0];
$pagename=$actions[0];
}
} else {
$actions=array('');
@ -450,7 +450,7 @@
";
}
} else {
// OK, the page is now locked to us. Put in the AJAX for keeping the lock
// OK, the page is now locked to us. Put in the AJAX for keeping the lock
$strlockcancelled=get_string('lockcancelled','wiki');
$strnojslockwarning=get_string('nojslockwarning','wiki');
$intervalms=WIKI_LOCK_RECONFIRM*1000;