flagflag  

Re: Modlos 1.5.2: editing avatar ownership fails

List posts in the topic

なし Re: Modlos 1.5.2: editing avatar ownership fails

msg# 1.1.1.1
depth:
3
Previous post - Next post | Parent - No child | Posted on 2011/2/3 8:27
roel  Just popping in   Posts: 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
Votes:125 Average:5.60

Posts tree

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthNov 2025Next Month
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Today

Access Counter

Today : 8432843284328432
Yesterday : 171424171424171424171424171424171424
Total : 3305763333057633330576333305763333057633330576333305763333057633
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com