From c661aa947b51432068f61b60b7b24342f3cfbcee Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 15 Mar 2005 16:27:25 +0000 Subject: [PATCH] Argh! Just deleting some files sent here by error!! (one wrong CVS dir was the cause) Sorry!! --- .../block_latest_activities.php | 62 ------------------- blocks/recent_activity/config_global.html | 21 ------- .../lang/en/block_latest_activities.php | 6 -- .../lang/es/block_latest_activities.php | 6 -- 4 files changed, 95 deletions(-) delete mode 100644 blocks/recent_activity/block_latest_activities.php delete mode 100644 blocks/recent_activity/config_global.html delete mode 100644 blocks/recent_activity/lang/en/block_latest_activities.php delete mode 100644 blocks/recent_activity/lang/es/block_latest_activities.php diff --git a/blocks/recent_activity/block_latest_activities.php b/blocks/recent_activity/block_latest_activities.php deleted file mode 100644 index d9ddfa02fb8..00000000000 --- a/blocks/recent_activity/block_latest_activities.php +++ /dev/null @@ -1,62 +0,0 @@ -title = get_string('blockname','block_latest_activities'); - $this->version = 2005031400; - } - - function has_config() {return true;} - - function applicable_formats() { - return (array('course-view-weeks' => true, 'course-view-topics' => true)); - } - - function get_content() { - global $CFG, $USER; - - if ($this->content !== NULL) { - return $this->content; - } - - $this->content = new stdClass; - $this->content->text = ''; - $this->content->footer = ''; - - if (empty($this->instance)) { - return $this->content; - } - - $course = get_record('course', 'id', $this->instance->pageid); - - $activitiestosee = 5; //Activities default - if (isset($CFG->block_latest_activities_number)) { - $activitiestosee = $CFG->block_latest_activities_number; - } - - $activities = get_records_sql("SELECT l.id, l.cmid, l.module, l.time - FROM {$CFG->prefix}course_modules m, - {$CFG->prefix}log l - WHERE l.cmid = m.id AND - l.userid = $USER->id AND - l.course = $course->id AND - m.visible = 1 - ORDER BY l.time DESC ". - sql_paging_limit(0,$activitiestosee)); - - $modinfo = unserialize($course->modinfo); - - if (!empty($activities) && !empty($modinfo)) { - foreach ($activities as $activity) { - $activity->name = urldecode($modinfo[$activity->cmid]->name); - $activity->timeago = format_time(time() - $activity->time); - $this->content->text .= '
'; - $this->content->text .= ''.$activity->name.''; - $this->content->text .= '
'; - } - } - return $this->content; - } -} - -?> diff --git a/blocks/recent_activity/config_global.html b/blocks/recent_activity/config_global.html deleted file mode 100644 index e887cb344f0..00000000000 --- a/blocks/recent_activity/config_global.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - -
block_latest_activities_number: - - - - -
-
diff --git a/blocks/recent_activity/lang/en/block_latest_activities.php b/blocks/recent_activity/lang/en/block_latest_activities.php deleted file mode 100644 index ac5e19cda01..00000000000 --- a/blocks/recent_activity/lang/en/block_latest_activities.php +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/blocks/recent_activity/lang/es/block_latest_activities.php b/blocks/recent_activity/lang/es/block_latest_activities.php deleted file mode 100644 index 3593ad60ca3..00000000000 --- a/blocks/recent_activity/lang/es/block_latest_activities.php +++ /dev/null @@ -1,6 +0,0 @@ -