[svn r12055] update the name of the lp on the link on the homepage too

skala
Eric Marguin 19 years ago
parent a4768670ac
commit 272cc88766
  1. 12
      main/newscorm/learnpath.class.php

@ -3797,7 +3797,17 @@ class learnpath {
//$res = Database::query($sql); //$res = Database::query($sql);
$res = api_sql_query($sql); $res = api_sql_query($sql, __FILE__, __LINE__);
// if the lp is visible on the homepage, change his name there
if(mysql_affected_rows())
{
$table = Database :: get_course_table(TABLE_TOOL_LIST);
$sql = 'UPDATE '.$table.' SET
name = "'.$this->name.'"
WHERE link = "newscorm/lp_controller.php?action=view&lp_id='.$lp_id.'"';
api_sql_query($sql, __FILE__, __LINE__);
}
return true; return true;

Loading…
Cancel
Save