[svn r10155] replace some remaining TOOL_FORUM_TOPIC_TABLE by TOOL_FORUM_POST_TABLE

skala
Eric Marguin 18 years ago
parent 82f0d9c144
commit 279631ad2f
  1. 4
      main/coursecopy/classes/CourseBuilder.class.php
  2. 6
      main/coursecopy/classes/CourseRestorer.class.php
  3. 2
      main/inc/lib/groupmanager.lib.php
  4. 2
      main/resourcelinker/resourcelinker.php

@ -1,4 +1,4 @@
<?php // $Id: CourseBuilder.class.php 10154 2006-11-23 08:48:12Z elixir_inter $
<?php // $Id: CourseBuilder.class.php 10155 2006-11-23 08:53:59Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -167,7 +167,7 @@ class CourseBuilder
*/
function build_forum_topics()
{
$table = Database :: get_course_table(TOOL_FORUM_TOPIC_TABLE);
$table = Database :: get_course_table(TOOL_FORUM_POST_TABLE);
$sql = 'SELECT * FROM '.$table;
$db_result = api_sql_query($sql, __FILE__, __LINE__);
while ($obj = mysql_fetch_object($db_result))

@ -1,7 +1,7 @@
<?php
// $Id: CourseRestorer.class.php 10154 2006-11-23 08:48:12Z elixir_inter $
// $Id: CourseRestorer.class.php 10155 2006-11-23 08:53:59Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -324,7 +324,7 @@ class CourseRestorer
if ($this->course->has_resources(RESOURCE_FORUM))
{
$table_forum = Database :: get_course_table(TOOL_FORUM_TABLE, $this->course->destination_db);
$table_topic = Database :: get_course_table(TOOL_FORUM_TOPIC_TABLE, $this->course->destination_db);
$table_topic = Database :: get_course_table(TOOL_FORUM_POST_TABLE, $this->course->destination_db);
$table_post = Database :: get_course_table(TOOL_FORUM_POST_TABLE, $this->course->destination_db);
$resources = $this->course->resources;
foreach ($resources[RESOURCE_FORUM] as $id => $forum)
@ -378,7 +378,7 @@ class CourseRestorer
*/
function restore_topic($id, $forum_id)
{
$table = Database :: get_course_table(TOOL_FORUM_TOPIC_TABLE, $this->course->destination_db);
$table = Database :: get_course_table(TOOL_FORUM_POST_TABLE, $this->course->destination_db);
$resources = $this->course->resources;
$topic = $resources[RESOURCE_FORUMTOPIC][$id];
$sql = "INSERT INTO ".$table." SET topic_title = '".mysql_real_escape_string($topic->title)."', topic_time = '".$topic->time."', nom = '".mysql_real_escape_string($topic->lastname)."', prenom = '".mysql_real_escape_string($topic->firstname)."', topic_notify = '".$topic->topic_notify."', forum_id = '".$forum_id."'";

@ -288,7 +288,7 @@ class GroupManager
$forum_table = Database :: get_course_table(TOOL_FORUM_TABLE, $course_db);
$forum_post_table = Database :: get_course_table(TOOL_FORUM_POST_TABLE, $course_db);
$forum_post_text_table = Database :: get_course_table(TOOL_FORUM_POST_TEXT_TABLE, $course_db);
$forum_topic_table = Database :: get_course_table(TOOL_FORUM_TOPIC_TABLE, $course_db);
$forum_topic_table = Database :: get_course_table(TOOL_FORUM_POST_TABLE, $course_db);
$group_ids = is_array($group_ids) ? $group_ids : array ($group_ids);
// define repository for deleted element
$group_garbage = api_get_path(GARBAGE_PATH).$course['path']."/group/";

@ -743,7 +743,7 @@ if ($content == "Forum")
{
$TBL_FORUMS = Database::get_course_table(TOOL_FORUM_TABLE);
$TBL_CATAGORIES = Database::get_course_table(TOOL_FORUM_CATEGORY_TABLE);
$TBL_FORUMTOPICS = Database::get_course_table(TOOL_FORUM_TOPIC_TABLE);
$TBL_FORUMTOPICS = Database::get_course_table(TOOL_FORUM_POST_TABLE);
$tbl_posts = Database::get_course_table(TOOL_FORUM_POST_TABLE);
$tbl_posts_text = Database::get_course_table(TOOL_FORUM_POST_TEXT_TABLE);

Loading…
Cancel
Save