mirror of
https://github.com/friendica/friendica
synced 2025-01-24 11:39:46 +00:00
code style & install-403 fix
This commit is contained in:
parent
d579d9e1d0
commit
58c9566c3d
6 changed files with 138 additions and 133 deletions
|
@ -139,7 +139,7 @@ class App
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the current config of this nodde
|
||||
* Returns the current config of this node
|
||||
*
|
||||
* @return Configuration
|
||||
*/
|
||||
|
|
|
@ -40,7 +40,7 @@ Options
|
|||
-P|--dbpass <password> The password of the mysql/mariadb database login (env MYSQL_PASSWORD)
|
||||
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
|
||||
-B|--phppath <php_path> The path of the PHP binary (env FRIENDICA_PHP_PATH)
|
||||
-b|--basepath <base_path> The basepath of Friendica(env FRIENDICA_BASE_PATH)
|
||||
-b|--basepath <base_path> The basepath of Friendica (env FRIENDICA_BASE_PATH)
|
||||
-t|--tz <timezone> The timezone of Friendica (env FRIENDICA_TZ)
|
||||
-L|--lang <language> The language of Friendica (env FRIENDICA_LANG)
|
||||
|
||||
|
|
|
@ -249,8 +249,9 @@ class Installer
|
|||
$help .= L10n::t("If you don't have a command line version of PHP installed on your server, you will not be able to run the background processing. See <a href='https://github.com/friendica/friendica/blob/master/doc/Install.md#set-up-the-worker'>'Setup the worker'</a>") . EOL;
|
||||
$help .= EOL . EOL;
|
||||
$tpl = Renderer::getMarkupTemplate('field_input.tpl');
|
||||
/// @todo Separate backend Installer class and presentation layer/view
|
||||
$help .= Renderer::replaceMacros($tpl, [
|
||||
'$field' => ['config.php_path', L10n::t('PHP executable path'), $phppath, L10n::t('Enter full path to php executable. You can leave this blank to continue the installation.')],
|
||||
'$field' => ['config-php_path', L10n::t('PHP executable path'), $phppath, L10n::t('Enter full path to php executable. You can leave this blank to continue the installation.')],
|
||||
]);
|
||||
$phppath = "";
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class Install extends BaseModule
|
|||
*/
|
||||
const DATABASE_CONFIG = 3;
|
||||
/**
|
||||
* Step four - Adapat site settings
|
||||
* Step four - Adapt site settings
|
||||
*/
|
||||
const SITE_SETTINGS = 4;
|
||||
/**
|
||||
|
@ -50,6 +50,10 @@ class Install extends BaseModule
|
|||
{
|
||||
$a = self::getApp();
|
||||
|
||||
if (!$a->getMode()->isInstall()) {
|
||||
Core\System::httpExit(403);
|
||||
}
|
||||
|
||||
// route: install/testrwrite
|
||||
// $baseurl/install/testrwrite to test if rewrite in .htaccess is working
|
||||
if ($a->getArgumentValue(1, '') == 'testrewrite') {
|
||||
|
@ -227,7 +231,7 @@ class Install extends BaseModule
|
|||
$configCache->get('database', 'hostname'),
|
||||
'',
|
||||
'required'],
|
||||
'$dbuser' => ['database-username',
|
||||
'$dbuser ' => ['database-username',
|
||||
L10n::t('Database Login Name'),
|
||||
$configCache->get('database', 'username'),
|
||||
'',
|
||||
|
|
|
@ -607,7 +607,7 @@ Options
|
|||
-P|--dbpass <password> The password of the mysql/mariadb database login (env MYSQL_PASSWORD)
|
||||
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
|
||||
-B|--phppath <php_path> The path of the PHP binary (env FRIENDICA_PHP_PATH)
|
||||
-b|--basepath <base_path> The basepath of Friendica(env FRIENDICA_BASE_PATH)
|
||||
-b|--basepath <base_path> The basepath of Friendica (env FRIENDICA_BASE_PATH)
|
||||
-t|--tz <timezone> The timezone of Friendica (env FRIENDICA_TZ)
|
||||
-L|--lang <language> The language of Friendica (env FRIENDICA_LANG)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue