Skip to content

Commit

Permalink
getStreamScheme() touchup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmstacey committed Jul 16, 2009
1 parent c682d69 commit 89fc86b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/stream_wrapper_registry.inc
Expand Up @@ -88,7 +88,7 @@ class DrupalStreamWrapperRegistry {
}

/**
* Gets the scheme of a URI (stream).
* Returns the scheme of a stream [URI].
*
* A stream is referenced as scheme://target.
*
Expand All @@ -100,9 +100,7 @@ class DrupalStreamWrapperRegistry {
*/
public static function getStreamScheme($uri) {
$data = explode('://', $uri, 2);
// $data[0]://$data[1]
// scheme://target


return count($data) == 2 ? $data[0] : FALSE;
}

Expand Down

0 comments on commit 89fc86b

Please sign in to comment.