call get_string() function problem

Re: call get_string() function problem

by Zoran Jeremic -
Number of replies: 0

Hi,

I've solved this problem. As I'm newby in PHP I didn't know that in this case global $CFG is available in called function without require_once('config.php');

So, I created something like this:

<?php

function

{

require_once('http://localhost:8080/JavaBridge/java/Java.inc'); $myLib=get_string('moodle_jar_file','depths');

java_require($CFG->wwwroot.'/'.$myLib);

It works now.

Thanks

depths_insert_record($table,$dataobject, $id,$insertSQL)global $CFG;