]> git.nbdom.net Git - nb.git/commitdiff
dbq nginx
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 12 Dec 2016 17:07:23 +0000 (18:07 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 12 Dec 2016 17:07:23 +0000 (18:07 +0100)
www/dbq/dbq.php

index 3b136d438cb92de734ce2b0f11049f86a556e91c..205af0719a5c2bf68db45a87c5083b41648990c5 100644 (file)
@@ -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];