Strange PHP error that I have never hear of?

Status
Not open for further replies.

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
Hello all. I was derping around with Joopie's VisualCCMS today and came across this strange error that i have never seen before. I have no idea what it is.

Here is a screen shot:
51cbd1e714234805a4f35c7.png




Does anyone know how to fix this? The code follows below;
PHP:
<?php
 
namespace CustoMS;
 
if (!defined('BASE'))
{
exit;
}
 
class IncludeFile
{
private $file;
private $rule;
 
function __Construct($file)
{
$this->file = $file;
 
$ext = $this->Extention();
switch ($ext)
{
case 'js':
$this->rule = '<script type="text/javascript" src="'.$this->file.'"></script>';
break;
 
case 'css':
$this->rule = '<link type="text/css" rel="stylesheet" href="'.$this->file.'">';
break;
}
}
 
private function Extention()
{
return end(explode('.', $this->file));
}
 
function __Tostring()
{
return $this->rule;
}
}
 
?>

It would be great if someone could fix it, and explain what they did. Thanks!
 
Status
Not open for further replies.

Users who are viewing this thread

Top