thomascube
2005-11-08 583f1c8d80c42195d0ee41f30a885e13d777b79f
program/include/main.inc
@@ -573,6 +573,7 @@
// replace all strings ($varname) with the content of the according global variable
function parse_with_globals($input)
  {
  $GLOBALS['__comm_path'] = $GLOBALS['COMM_PATH'];
  $output = preg_replace('/\$(__[a-z0-9_\-]+)/e', '$GLOBALS["\\1"]', $input);
  return $output;
  }