NEW - bug 210: Babel or Babel-like Community Internationalization
https://foundation.eclipse.org/infrazilla/show_bug.cgi?id=210
diff --git a/html/global.php b/html/global.php
index f7ea0f5..f2d31b6 100644
--- a/html/global.php
+++ b/html/global.php
@@ -10,7 +10,7 @@
  *    Paul Colton (Aptana)- initial API and implementation
  *    Eclipse Foundation
 *******************************************************************************/
-define('BABEL_BASE_DIR', 	"../");
+define('BABEL_BASE_DIR', $_SERVER['DOCUMENT_ROOT']."/../");
 define('USE_PHOENIX', 		true);
 define("COOKIE_REMEMBER",	"cBABEL");
 define("COOKIE_SESSION" ,	"sBABEL");
@@ -123,4 +123,13 @@
   return $varVal;
 }
 
+function getLanguagebyID($id){
+	global $dbh;
+	$query = "select name from languages where language_id = '".addslashes($id)."' limit 1";
+	$res = mysql_query($query,$dbh);
+	$ret = mysql_fetch_array($res, MYSQL_ASSOC);
+	return $ret['name'];
+}
+
+
 ?>
\ No newline at end of file