More fixes when executing backups see #5499

skala
Julio Montoya 13 years ago
parent 0efda85f7d
commit 4f83887912
  1. 2
      main/coursecopy/classes/CourseArchiver.class.php
  2. 5
      main/coursecopy/classes/CourseSelectForm.class.php
  3. 8
      main/coursecopy/classes/ForumTopic.class.php

@ -33,7 +33,7 @@ class CourseArchiver {
* Write a course and all its resources to a zip-file.
* @return string A pointer to the zip-file
*/
function write_course($course) {
static function write_course($course) {
$perm_dirs = api_get_permissions_for_new_directories();
CourseArchiver::clean_backup_dir();

@ -221,8 +221,7 @@ class CourseSelectForm
echo "<a class=\"btn\" href=\"javascript: void(0);\" onclick=\"javascript:setCheckboxForum('".RESOURCE_FORUM."',true, '".$forum_category_id."');\" >".get_lang('All')."</a>";
echo "<a class=\"btn\" href=\"javascript: void(0);\" onclick=\"javascript:setCheckboxForum('".RESOURCE_FORUM."',false, '".$forum_category_id."' );\" >".get_lang('None')."</a>";
echo '</div>';
}
}
echo '</li>';
if (isset($forums[$forum_category_id])) {
@ -344,7 +343,7 @@ class CourseSelectForm
* @return course The course-object with all resources selected by the user
* in the form given by display_form(...)
*/
function get_posted_course($from='', $session_id = 0, $course_code = '') {
static function get_posted_course($from='', $session_id = 0, $course_code = '') {
$course = Course::unserialize(base64_decode($_POST['course']));
//Create the resource DOCUMENT objects

@ -46,7 +46,11 @@ class ForumTopic extends Resource {
*/
function show() {
parent::show();
echo $this->obj->thread_title . ' (' . $this->obj->topic_poster_name . ', ' . $this->obj->topic_time . ')';
$extra = api_convert_and_format_date($this->obj->thread_date);
if ($this->obj->thread_poster_id) {
$user_info = api_get_user_info($this->obj->thread_poster_id);
$extra = $user_info['complete_name'].', '.$extra;
}
echo $this->obj->thread_title . ' (' . $extra . ')';
}
}
Loading…
Cancel
Save