Skip to content

Commit a9bf274

Browse files
committed
Update Response.php
1 parent 3681479 commit a9bf274

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Diff for: src/Library/Response.php

+10-6
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44
* HTTP Response Functions
55
*/
66

7-
/** @var array Variables in URI */
8-
$reqVars = array();
9-
10-
7+
/**
8+
* Returns URI variables
9+
*
10+
* @param string $key
11+
*
12+
* @return string|int|double
13+
*/
1114
function reqVar($key)
1215
{
13-
global $reqVars;
14-
return $reqVars;
16+
require_once __DIR__ . '/URIVariables.php';
17+
$reqVars = URIVariables::$reqVars;
18+
return $reqVars[$key];
1519
}
1620

1721
/**

0 commit comments

Comments
 (0)