code style & install-403 fix
This commit is contained in:
parent
d579d9e1d0
commit
58c9566c3d
@ -139,7 +139,7 @@ class App
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current config of this nodde
|
* Returns the current config of this node
|
||||||
*
|
*
|
||||||
* @return Configuration
|
* @return Configuration
|
||||||
*/
|
*/
|
||||||
|
@ -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 .= 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;
|
$help .= EOL . EOL;
|
||||||
$tpl = Renderer::getMarkupTemplate('field_input.tpl');
|
$tpl = Renderer::getMarkupTemplate('field_input.tpl');
|
||||||
|
/// @todo Separate backend Installer class and presentation layer/view
|
||||||
$help .= Renderer::replaceMacros($tpl, [
|
$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 = "";
|
$phppath = "";
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class Install extends BaseModule
|
|||||||
*/
|
*/
|
||||||
const DATABASE_CONFIG = 3;
|
const DATABASE_CONFIG = 3;
|
||||||
/**
|
/**
|
||||||
* Step four - Adapat site settings
|
* Step four - Adapt site settings
|
||||||
*/
|
*/
|
||||||
const SITE_SETTINGS = 4;
|
const SITE_SETTINGS = 4;
|
||||||
/**
|
/**
|
||||||
@ -50,6 +50,10 @@ class Install extends BaseModule
|
|||||||
{
|
{
|
||||||
$a = self::getApp();
|
$a = self::getApp();
|
||||||
|
|
||||||
|
if (!$a->getMode()->isInstall()) {
|
||||||
|
Core\System::httpExit(403);
|
||||||
|
}
|
||||||
|
|
||||||
// route: install/testrwrite
|
// route: install/testrwrite
|
||||||
// $baseurl/install/testrwrite to test if rewrite in .htaccess is working
|
// $baseurl/install/testrwrite to test if rewrite in .htaccess is working
|
||||||
if ($a->getArgumentValue(1, '') == 'testrewrite') {
|
if ($a->getArgumentValue(1, '') == 'testrewrite') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user