Skip to content

Commit

Permalink
Update Resource.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aslubsky committed Dec 8, 2015
1 parent 4ba9ecf commit 6c609a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Bazalt/Rest/Resource.php
Expand Up @@ -17,9 +17,11 @@ public static function params($params = null)
self::$parsedParams = $params;
}

protected static function parseParams()
public static function parseParams($query = null)
{
$query = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
if($query === null) {
$query = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
}
$vars = array();
$second = array();
$parts = explode('&', $query);
Expand Down

0 comments on commit 6c609a3

Please sign in to comment.