mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
3) Introducing ConfigFactory
This commit is contained in:
parent
5c50684b50
commit
4af0119b73
23 changed files with 843 additions and 632 deletions
|
@ -101,12 +101,11 @@ class DBStructure
|
|||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function definition($with_addons_structure = true)
|
||||
public static function definition($basepath, $with_addons_structure = true)
|
||||
{
|
||||
if (!self::$definition) {
|
||||
$a = \Friendica\BaseObject::getApp();
|
||||
|
||||
$filename = $a->getBasePath() . '/config/dbstructure.config.php';
|
||||
$filename = $basepath . '/config/dbstructure.config.php';
|
||||
|
||||
if (!is_readable($filename)) {
|
||||
throw new Exception('Missing database structure config file config/dbstructure.config.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue