? .potx.inc.swp ? general.pot Index: potx.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx.inc,v retrieving revision 1.1.2.17.2.7.2.8 diff -u -p -r1.1.2.17.2.7.2.8 potx.inc --- potx.inc 25 Mar 2008 17:54:57 -0000 1.1.2.17.2.7.2.8 +++ potx.inc 7 Apr 2008 03:05:16 -0000 @@ -1089,7 +1089,10 @@ function _potx_parse_js_string($string) */ function _potx_explore_dir($path = '', $basename = '*', $api_version = POTX_API_6) { $files = glob("$path$basename.{php,inc,module,engine,theme,install,info,profile". ($api_version == POTX_API_6 ? ',js}' :'}'), GLOB_BRACE); + $files = empty($files) ? array() : $files; $dirs = glob("$path*", GLOB_ONLYDIR); + $dirs = empty($dirs) ? array() : $dirs; + foreach ($dirs as $dir) { if (!preg_match("!(^|.+/)(CVS|.svn|.git)$!", $dir)) { $files = array_merge($files, _potx_explore_dir("$dir/", $basename));