Re: Modlos 1.5.2: editing avatar ownership fails
roel
投稿数: 7
I still don't know why OPENSIM_DB_NAME is being searched by get_record() instead of CMS_DB_NAME. All I know is that get_record() calls get_record_sql() which in turn calls get_recordset_sql(). get_recordset_sql() uses the global variable $db. Perhaps this function in /include/opensim.mysql.php has something to do with it.
function opensim_new_db($timeout=60)
{
$db = new DB(OPENSIM_DB_HOST, OPENSIM_DB_NAME, OPENSIM_DB_USER, OPENSIM_DB_PASS, $timeout);
return $db;
}
I hope someone has a solution to this problem.
But I found some things that appear to be bugs. Although they may be unrelated.
1. There seems to be typo in blocks/modlos/settings.php line 5
include(CMS_MODILE_PATH.'/modlos/include/modlos.func.php');
should be CMS_MODULE_PATH
2. Undefined variable: SITE in /var/www/quest/moodle/blocks/modlos/include/modlos.func.php on line 1110. So I inserted $SITE line 1094.
function print_modlos_header($currenttab, $course)
{
global $CFG, $SITE;
Please confirm and tell me if these correct solutions?. Thanks
function opensim_new_db($timeout=60)
{
$db = new DB(OPENSIM_DB_HOST, OPENSIM_DB_NAME, OPENSIM_DB_USER, OPENSIM_DB_PASS, $timeout);
return $db;
}
I hope someone has a solution to this problem.
But I found some things that appear to be bugs. Although they may be unrelated.
1. There seems to be typo in blocks/modlos/settings.php line 5
include(CMS_MODILE_PATH.'/modlos/include/modlos.func.php');
should be CMS_MODULE_PATH
2. Undefined variable: SITE in /var/www/quest/moodle/blocks/modlos/include/modlos.func.php on line 1110. So I inserted $SITE line 1094.
function print_modlos_header($currenttab, $course)
{
global $CFG, $SITE;
Please confirm and tell me if these correct solutions?. Thanks
投票数:113
平均点:5.75
投稿ツリー
-
Modlos 1.5.2: editing avatar ownership fails
(roel, 2011-1-28 17:55)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(iseki, 2011-1-31 18:58)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(roel, 2011-2-2 17:32)
- Re: Modlos 1.5.2: editing avatar ownership fails (roel, 2011-2-3 8:27)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(roel, 2011-2-2 17:32)
-
Re: Modlos 1.5.2: editing avatar ownership fails
(iseki, 2011-1-31 18:58)