cachejs) && $CFG->cachejs == false){ $f = fopen("/tmp/log.txt","a"); fwrite($f,$tag . ":\n".print_r($object,true)."\n"); fclose($f); } } public static function msg($tag,$str) { global $CFG; // assume debug environment if cachejs is false if(isset($CFG->cachejs) && $CFG->cachejs == false){ $f = fopen("/tmp/log.txt","a"); fwrite($f,$tag . ":\n".$str."\n"); fclose($f); } } }