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:
Does anyone know how to fix this? The code follows below;
It would be great if someone could fix it, and explain what they did. Thanks!
Here is a screen shot:
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!