Change all the "new class" by "new Class"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user