Index: includes/stream_wrappers.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/stream_wrappers.inc,v
retrieving revision 1.12
diff -u -d -F '^\s*function' -r1.12 stream_wrappers.inc
--- includes/stream_wrappers.inc	6 Feb 2010 05:49:35 -0000	1.12
+++ includes/stream_wrappers.inc	20 Mar 2010 22:28:10 -0000
@@ -639,7 +639,7 @@   function realpath() {
    */
   function getExternalUrl() {
     $path = str_replace('\\', '/', file_uri_target($this->uri));
-    return $GLOBALS['base_url'] . '/' . self::getDirectoryPath() . '/' . drupal_encode_path($path);
+    return $GLOBALS['base_url'] . '/' . $this->getDirectoryPath() . '/' . drupal_encode_path($path);
   }
 }
 
