From: Nicolas Boisselier Date: Mon, 12 Dec 2016 17:07:23 +0000 (+0100) Subject: dbq nginx X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=92326ae590c90a948cc1585dffeb696f206e3d8a;p=nb.git dbq nginx --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 3b136d43..205af071 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -293,12 +293,11 @@ table.rows th, table.rows td { border-color: '.$this->colors['body-border'].'; } public function uri_params() { $values = []; - if (empty($_SERVER['REQUEST_URI'])) $_SERVER['REQUEST_URI'] = join('/',count($GLOBALS['argv'])>0 ? array_slice($GLOBALS['argv'],1) : []); + if (empty($_SERVER['REQUEST_URI'])) $_SERVER['REQUEST_URI'] = join('/',( count($GLOBALS['argv'])>0 ) ? array_slice($GLOBALS['argv'],1) : []); list ($path,$args) = explode('?',$_SERVER['REQUEST_URI']); $this->uri = $path; $this->uri_params = $args; - #$path = preg_replace('/\?.*$/','',$_SERVER['REQUEST_URI']); if (preg_match('/\.(\w+)$/',$path,$m)) { $values[] = $m[1];