mirror of
https://github.com/humhub/humhub.git
synced 2025-04-20 15:11:52 +02:00
Rename dynamic.php and DynamicConfig.php
This commit is contained in:
parent
712a2cebba
commit
1f49cbfccb
2
protected/config/.gitignore
vendored
2
protected/config/.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
/dynamic.php
|
||||
/databaseCredentials.php
|
||||
/common.php
|
||||
/console.php
|
||||
/security.json
|
||||
|
@ -192,7 +192,7 @@ $config = [
|
||||
'params' => [
|
||||
'installed' => false,
|
||||
'databaseDefaultStorageEngine' => 'InnoDB',
|
||||
'dynamicConfigFile' => '@config/dynamic.php',
|
||||
'databaseCredFile' => '@config/databaseCredentials.php',
|
||||
'moduleAutoloadPaths' => ['@app/modules', '@humhub/modules'],
|
||||
'availableLanguages' => [
|
||||
'en-US' => 'English (US)',
|
||||
|
@ -88,7 +88,7 @@ class DynamicConfig extends BaseObject
|
||||
|
||||
public static function getConfigFilePath()
|
||||
{
|
||||
return Yii::getAlias(Yii::$app->params['dynamicConfigFile']);
|
||||
return Yii::getAlias(Yii::$app->params['databaseCredFile']);
|
||||
}
|
||||
|
||||
public static function exist()
|
||||
|
@ -580,7 +580,7 @@ class SelfTest
|
||||
}
|
||||
// Check Dynamic Config is Writable
|
||||
$title = Yii::t('AdminModule.information', 'Permissions') . ' - ' . Yii::t('AdminModule.information', 'Dynamic Config');
|
||||
$path = Yii::getAlias(Yii::$app->params['dynamicConfigFile']);
|
||||
$path = Yii::getAlias(Yii::$app->params['databaseCredFile']);
|
||||
if (!is_file($path)) {
|
||||
$path = dirname($path);
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ $testConfig = [
|
||||
],
|
||||
],
|
||||
'params' => [
|
||||
'dynamicConfigFile' => '@humhub/tests/codeception/config/dynamic.php',
|
||||
'databaseCredFile' => '@humhub/tests/codeception/config/databaseCredentials.php',
|
||||
'installed' => true,
|
||||
'settings' => [
|
||||
'core' => [
|
||||
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => 'HumHub',
|
||||
'language' => 'en-US',
|
||||
'timeZone' => 'Europe/Berlin',
|
||||
'components' =>
|
||||
[
|
||||
'formatter' =>
|
||||
[
|
||||
'defaultTimeZone' => 'Europe/Berlin',
|
||||
],
|
||||
'user' =>
|
||||
[
|
||||
],
|
||||
'mailer' =>
|
||||
[
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'cache' =>
|
||||
[
|
||||
'class' => 'yii\\caching\\DummyCache',
|
||||
'keyPrefix' => 'humhub',
|
||||
],
|
||||
],
|
||||
'params' =>
|
||||
[
|
||||
'config_created_at' => 1509135303,
|
||||
],
|
||||
];
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => 'HumHub',
|
||||
'language' => 'en-US',
|
||||
'timeZone' => 'Europe/Berlin',
|
||||
'components' =>
|
||||
[
|
||||
'formatter' =>
|
||||
[
|
||||
'defaultTimeZone' => 'Europe/Berlin',
|
||||
],
|
||||
'user' =>
|
||||
[
|
||||
],
|
||||
'mailer' =>
|
||||
[
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'cache' =>
|
||||
[
|
||||
'class' => 'yii\\caching\\DummyCache',
|
||||
'keyPrefix' => 'humhub',
|
||||
],
|
||||
],
|
||||
'params' =>
|
||||
[
|
||||
'config_created_at' => 1509135303,
|
||||
],
|
||||
];
|
Loading…
x
Reference in New Issue
Block a user