1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +02:00

Issue #5120 Use static methods.

This commit is contained in:
camer0n
2023-12-18 14:38:04 -08:00
parent ab5f0fb911
commit 63d3c075c3
4 changed files with 38 additions and 82 deletions

View File

@@ -40,7 +40,7 @@ const e_MOD_REWRITE = true;
class e107_config
{
public function database()
public static function database()
{
return [
'server' => '{{ mySQLserver }}',
@@ -52,7 +52,7 @@ class e107_config
];
}
public function paths()
public static function paths()
{
return [
'admin' => 'e107_admin/',
@@ -68,7 +68,7 @@ class e107_config
];
}
public function other()
public static function other()
{
return [
'site_path' => '000000test'
@@ -76,4 +76,3 @@ class e107_config
}
}
return new e107_config;