better singleton instance
This commit is contained in:
@@ -29,7 +29,7 @@ class Site
|
|||||||
return self::$instance;
|
return self::$instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function __construct($config = [])
|
private function __construct(array $config)
|
||||||
{
|
{
|
||||||
if ($config == [] && file_exists(TEMPLATEPATH . "/config.php")) {
|
if ($config == [] && file_exists(TEMPLATEPATH . "/config.php")) {
|
||||||
$config = include(TEMPLATEPATH . "/config.php");
|
$config = include(TEMPLATEPATH . "/config.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user