rem: if (arr[i].indexOf("messages.") > -1) { var name = arr[i].substring(arr[i].indexOf(".")+1,arr[i].length); var msgFile = new File(dir, arr[i]); 
add: var fname = arr[i]; if (fname.indexOf("messages.") > -1) { var name = fname.substring(fname.indexOf(".")+1,fname.length); var msgFile = new File(dir, fname); 
context: function onStart() {   // load application messages   var dir = new File(app.dir);   var arr = dir.list();   for (var i in arr) {   	if (arr[i].indexOf("messages.") > -1) {         var name = arr[i].substring(arr[i].indexOf(".")+1,arr[i].length);   		var msgFile = new File(dir, arr[i]);   		app.data[name] = new Packages.helma.util.SystemProperties (msgFile.getAbsolutePath());   		app.log ("loaded application messages (language: " + name + ")");   	}   }   // load macro help file   var macroHelpFile = new File(dir, "macro.help");   app.data.macros = new Packages.helma.util.SystemProperties (macroHelpFile.getAbsolutePath());   //eval(macroHelpFile.readAll());   app.log("loaded macro help file");   // creating the vector for referrer-logging   app.data.accessLog = new java.util.Vector();   // creating the hashtable for storyread-counting   app.data.readLog = new java.util.Hashtable();   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/524d7a38a365b2ae89b5bd95c9638669fbab49c6/objectFunctions.js/buggy/code/Global/objectFunctions.js