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