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

@@ -11,7 +11,7 @@ namespace Domframework;
* available, use it.
* It resend the headers as the ouptut send them
* Use it by :
* $c = new cacheoutput ("URL");
* $c = new Cacheoutput ("URL");
* Don't forget to define a variable or the cache saved is always empty
*/
class Cacheoutput
@@ -36,13 +36,13 @@ class Cacheoutput
{
$res = @include ("domframework/cache$method.php");
if ($res === false)
throw new Exception (sprintf (dgettext ("domframework",
throw new \Exception (sprintf (dgettext ("domframework",
"Unkwnown cache method : "), $method),
500);
$this->id = $id;
$this->ttl = $ttl;
$this->cacheCWD = getcwd();
$cachemethod = "cache$method";
$cachemethod = "Cache$method";
$this->cache = new $cachemethod ();
if ($ttl === 0)
$this->cache->nocache = 1;