Index: potx.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx.inc,v
retrieving revision 1.1.2.17.2.7.2.17
diff -u -p -r1.1.2.17.2.7.2.17 potx.inc
--- potx.inc	12 Mar 2009 14:58:59 -0000	1.1.2.17.2.7.2.17
+++ potx.inc	16 Mar 2009 15:38:26 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: potx.inc,v 1.1.2.17.2.7.2.17 2009/03/12 14:58:59 goba Exp $
+// $Id: potx.inc,v 1.1.2.17.2.7.2.16 2008/10/19 22:07:50 goba Exp $
 
 /**
  * @file
@@ -1169,6 +1169,14 @@ function _potx_explore_dir($path = '', $
     if (is_array($files_here)) {
       $files = array_merge($files, $files_here);
     }
+    if ($basename != '*') {
+      // Basename was specific, so look for things like basename.admin.inc as well.
+      // If the basnename was *, the above glob() already covered this case.
+      $files_here = glob($path . $basename .'.*.'. $extension);
+      if (is_array($files_here)) {
+        $files = array_merge($files, $files_here);
+      }
+    }
   }
   
   // Grab subdirectories.
