--- phptemplate.engine	2006-05-24 04:00:45.000000000 -0700
+++ /drupal/themes/engines/phptemplate/phptemplate.engine	2006-06-13 16:36:16.000000000 -0700
@@ -314,6 +314,10 @@ function _phptemplate_default($hook, $va
     $file = path_to_theme() . "/$file.tpl.php";
   }
   else {
+    if (file_exists($variables['directory'] . "/$hook.tpl.php")) {
+      $file = $variables['directory'] . "/$hook.tpl.php";
+    }
+    else
     if (file_exists(path_to_theme() . "/$hook.tpl.php")) {
       $file = path_to_theme() . "/$hook.tpl.php";
     }
