Skip to content

Commit 6284711

Browse files
committed
Proposed fix for issue #137
1 parent 7af5f65 commit 6284711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenTok/Util/Validators.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static function validateArchiveId($archiveId)
146146
}
147147
public static function validateArchiveData($archiveData)
148148
{
149-
if (!self::$schemaUri) { self::$schemaUri = realpath(__DIR__.'/archive-schema.json'); }
149+
if (!self::$schemaUri) { self::$schemaUri = __DIR__.'/archive-schema.json'; }
150150
$document = new Document();
151151
// have to do a encode+decode so that json objects decoded as arrays from Guzzle
152152
// are re-encoded as objects instead
@@ -162,7 +162,7 @@ public static function validateArchiveData($archiveData)
162162
}
163163
public static function validateArchiveListData($archiveListData)
164164
{
165-
if (!self::$schemaUri) { self::$schemaUri = realpath(__DIR__.'/archive-schema.json'); }
165+
if (!self::$schemaUri) { self::$schemaUri = __DIR__.'/archive-schema.json'; }
166166
$document = new Document();
167167
// have to do a encode+decode so that json objects decoded as arrays from Guzzle
168168
// are re-encoded as objects instead

0 commit comments

Comments
 (0)