code style & install-403 fix

This commit is contained in:
Philipp Holzer 2019-04-14 14:05:48 +02:00
parent d579d9e1d0
commit 58c9566c3d
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 138 additions and 133 deletions

View file

@ -139,7 +139,7 @@ class App
}
/**
* Returns the current config of this nodde
* Returns the current config of this node
*
* @return Configuration
*/

View file

@ -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 = "";
}

View file

@ -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') {