From d25163fd51d6b4326df5100e463e2613075456f4 Mon Sep 17 00:00:00 2001 From: Xavier Mamano Date: Wed, 19 Aug 2015 00:26:25 +0200 Subject: [PATCH] Allow url parameters on "jqGrid=>base_url" See issue #6 --- php/jqGrid.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/jqGrid.php b/php/jqGrid.php index bee42f4..9f772fe 100644 --- a/php/jqGrid.php +++ b/php/jqGrid.php @@ -1145,7 +1145,9 @@ protected function renderGridUrl() $params[$k] = $v; } - return $this->base_url . '?' . http_build_query($params); + return $this->base_url . ( + false === strpos($this->base_url, '?') ? '?' : '&' + ) . http_build_query($params); } /**