Index: potx.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx.module,v
retrieving revision 1.1.2.12.2.2.2.9
diff -u -p -r1.1.2.12.2.2.2.9 potx.module
--- potx.module	12 Mar 2009 14:58:59 -0000	1.1.2.12.2.2.2.9
+++ potx.module	13 Mar 2009 10:12:17 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: potx.module,v 1.1.2.12.2.2.2.9 2009/03/12 14:58:59 goba Exp $
+// $Id: potx.module,v 1.1.2.12.2.2.2.8 2008/10/19 22:07:50 goba Exp $
 
 /**
  * @file
@@ -110,6 +110,10 @@ function potx_select_form_submit($form, 
   
   $component = $form_state['values']['component'];
   $pathinfo = pathinfo($component);
+  if (!isset($pathinfo['filename'])) {
+    // The filename key is only available in PHP 5.2.0+
+    $pathinfo['filename'] = substr($pathinfo['basename'], 0, strrpos($pathinfo['basename'], '.'));
+  }
   $strip_prefix = 0;
 
   if (isset($pathinfo['extension'])) {
