Change all the "new class" by "new Class"

This commit is contained in:
2021-05-07 13:10:37 +02:00
parent c8d275be31
commit c09fa961cd
39 changed files with 430 additions and 432 deletions

View File

@@ -38,7 +38,7 @@ class Rest
// the output plugin at the end
$convert = array_intersect ($this->convert, $this->allowedtypes);
$type = array_search (reset ($this->allowedtypes), $this->convert);
$http = new http;
$http = new Http;
$type = $http->bestChoice ($_SERVER["HTTP_ACCEPT"], array_keys ($convert),
$type);
$type = $this->convert[$type];
@@ -56,12 +56,12 @@ class Rest
function display ($message, $code = 200)
// {{{
{
$http = new http;
$http = new Http;
$text = $http->codetext ($code);
header ($_SERVER["SERVER_PROTOCOL"]." $code $text");
$type = $this->chooseType ();
require_once ("domframework/output$type.php");
$constr = __NAMESPACE__."\\output$type";
$constr = __NAMESPACE__."\\Output$type";
$method = "out";
$obj = new $constr ();
$obj->$method ($message);