Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.726 diff -u -p -r1.726 common.inc --- includes/common.inc 29 Nov 2007 14:42:31 -0000 1.726 +++ includes/common.inc 30 Nov 2007 01:12:06 -0000 @@ -1483,10 +1483,14 @@ function drupal_map_assoc($array, $funct * output of the code. */ function drupal_eval($code) { + global $theme_path, $theme_info; + $temp = $theme_path; + $theme_path = dirname($theme_info->filename); ob_start(); print eval('?>'. $code); $output = ob_get_contents(); ob_end_clean(); + $theme_path = $temp; return $output; }