Skip to content

Commit 1c772e6

Browse files
committed
Fix - Recognise String as Joomla supported stream type
1 parent 4ade16b commit 1c772e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Stream.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ public function open($filename, $mode = 'r', $useIncludePath = false, $context =
232232
{
233233
$scheme = ucfirst($url['scheme']);
234234

235+
// Map to StringWrapper if required
236+
if ($scheme === 'String')
237+
{
238+
$scheme = 'StringWrapper';
239+
}
240+
235241
// If we're dealing with a Joomla! stream, load it
236242
if (Helper::isJoomlaStream($scheme))
237243
{
238-
// Map to StringWrapper if required
239-
if ($scheme === 'String')
240-
{
241-
$scheme = 'StringWrapper';
242-
}
243-
244244
require_once __DIR__ . '/Stream/' . $scheme . '.php';
245245
}
246246

0 commit comments

Comments
 (0)