Merged fixes for latest news from 1.8 MDL-9308

This commit is contained in:
moodler 2007-04-15 07:26:23 +00:00
parent 3e0647ffaf
commit 1519aa2b71
5 changed files with 1 additions and 15 deletions

View File

@ -25,7 +25,7 @@ class block_news_items extends block_base {
if ($COURSE->newsitems) { // Create a nice listing of recent postings
require_once($CFG->dirroot.'/mod/forum/lib.php'); // We'll need this
$text = '';
if (!$forum = forum_get_course_forum($COURSE->id, 'news')) {

View File

@ -2,7 +2,6 @@
// format.php - course format featuring single activity
// included from view.php
require_once("$CFG->dirroot/mod/forum/lib.php");
$module = $course->format;
require_once($CFG->dirroot.'/mod/'.$module.'/locallib.php');

View File

@ -7,10 +7,8 @@
// Included from "view.php"
require_once($CFG->dirroot.'/mod/forum/lib.php');
require_once($CFG->libdir.'/ajax/ajaxlib.php');
$topic = optional_param('topic', -1, PARAM_INT);
// Bounds for block widths

View File

@ -2,7 +2,6 @@
// Display the whole course as "weeks" made of of modules
// Included from "view.php"
require_once("$CFG->dirroot/mod/forum/lib.php");
require_once($CFG->libdir.'/ajax/ajaxlib.php');
$week = optional_param('week', -1, PARAM_INT);
@ -34,10 +33,6 @@
}
}
if ($course->newsitems) {
$news = forum_get_course_forum($course->id, 'news');
}
$streditsummary = get_string('editsummary');
$stradd = get_string('add');
$stractivities = get_string('activities');

View File

@ -25,8 +25,6 @@
*/
//TODO (nfreear): Accessibility: evaluation, lang/en_utf8/moodle.php: $string['formatweekscss']
require_once("$CFG->dirroot/mod/forum/lib.php");
$week = optional_param('week', -1, PARAM_INT);
if ($week != -1) {
@ -39,10 +37,6 @@
}
}
if ($course->newsitems) {
$news = forum_get_course_forum($course->id, 'news');
}
$streditsummary = get_string('editsummary');
$stradd = get_string('add');
$stractivities = get_string('activities');