\n";
diff --git a/lang/en/help/courserecent.html b/lang/en/help/courserecent.html
new file mode 100644
index 00000000000..19add5ac72e
--- /dev/null
+++ b/lang/en/help/courserecent.html
@@ -0,0 +1,16 @@
+
Recent Activity
+
+
Moodle can display "recent activity" on the course home page.
+
+
This shows the everything that has happened in the course since
+the last time the viewer logged in to the course, including
+new posts, new users, submitted journals etc.
+
+
It is highly recommended you leave this feature enabled in
+your courses, as it helps give a sense of activity in the course.
+Knowing what everyone else is doing also helps to promote a
+collaborative atmosphere in the class.
+
+
You might want to disable this feature for extremely large or
+heavily used courses, as it may slow down the display of
+the course page.
diff --git a/lang/en/moodle.php b/lang/en/moodle.php
index 788aab28651..d073f20ec35 100644
--- a/lang/en/moodle.php
+++ b/lang/en/moodle.php
@@ -421,6 +421,7 @@ $string['showallweeks'] = "Show all weeks";
$string['showlistofcourses'] = "Show list of courses";
$string['showonlytopic'] = "Show only topic \$a";
$string['showonlyweek'] = "Show only week \$a";
+$string['showrecent'] = "Show recent activity";
$string['showtheselogs'] = "Show these logs";
$string['socialheadline'] = "Social forum - latest topics";
$string['showallcourses'] = "Show all courses";
diff --git a/lib/db/mysql.php b/lib/db/mysql.php
index 9ffedfe4bf8..8df46602e47 100644
--- a/lib/db/mysql.php
+++ b/lib/db/mysql.php
@@ -193,6 +193,10 @@ function main_upgrade($oldversion=0) {
print_simple_box_end();
}
+ if ($oldversion < 2002111200) {
+ execute_sql(" ALTER TABLE `course` ADD `showrecent` TINYINT(5) UNSIGNED DEFAULT '1' NOT NULL AFTER `numsections` ");
+ }
+
return true;
}
diff --git a/lib/db/mysql.sql b/lib/db/mysql.sql
index 53199240f3e..724495f6433 100644
--- a/lib/db/mysql.sql
+++ b/lib/db/mysql.sql
@@ -44,6 +44,7 @@ CREATE TABLE `course` (
`guest` tinyint(2) unsigned NOT NULL default '0',
`startdate` int(10) unsigned NOT NULL default '0',
`numsections` smallint(5) unsigned NOT NULL default '1',
+ `showrecent` smallint(5) unsigned NOT NULL default '1',
`marker` int(10) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
diff --git a/version.php b/version.php
index 78ffb75a0f8..ab8c629b732 100644
--- a/version.php
+++ b/version.php
@@ -5,7 +5,7 @@
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
-$version = 2002111100; // The current version is a date (YYYYMMDDXX)
+$version = 2002111200; // The current version is a date (YYYYMMDDXX)
$release = "1.0.6.2"; // User-friendly version number