From 41d96013f2dc5912b9545b3767f14ce6b5cab47f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 13 Sep 2016 15:12:55 +0200 Subject: [PATCH] pinit --- lib/php/db.php | 4 ++++ lib/php/db/index.php | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/php/db.php b/lib/php/db.php index dafa4de4..dc252677 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -968,6 +968,10 @@ class Db extends nb { Db::pset('select',''); } + # Set format from client Accept if != html + #bye(out::client_type()); + Db::pdef('format',out::client_type()); + } public function ls(&$fields=[]) { diff --git a/lib/php/db/index.php b/lib/php/db/index.php index f2bb0562..38556f33 100755 --- a/lib/php/db/index.php +++ b/lib/php/db/index.php @@ -10,9 +10,6 @@ require_once(realpath(dirname(__FILE__).'/../config.php')); require_once(realpath(dirname(__FILE__).'/../db.php')); Db::pinit(); -# Set format from client Accept if != html -#bye(out::client_type()); -Db::pdef('format',out::client_type()); if(defined('DB_NO_INIT') and DB_NO_INIT) return true; #bye(Db::conf_load(array( Db::ROOT_DIR.'/etc/dbs.yaml','/etc/dbs.yaml' ))); -- 2.47.3