Code Standards

This commit is contained in:
Philipp Holzer 2018-10-29 14:39:09 +01:00
parent abb50fbf62
commit cfae736660
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
1 changed files with 12 additions and 10 deletions

View File

@ -50,8 +50,8 @@ class Install extends BaseModule
Core\System::httpExit(204); Core\System::httpExit(204);
} }
// We overwrite current theme css, because during install we clould not have a working mod_rewrite // We overwrite current theme css, because during install we may not have a working mod_rewrite
// so we could not have a css at all. Here we set a static css file for the install procedure pages // so we may not have a css at all. Here we set a static css file for the install procedure pages
$a->setConfigValue('system', 'value', '../install'); $a->setConfigValue('system', 'value', '../install');
$a->theme['stylesheet'] = $a->getBaseURL() . '/view/install/style.css'; $a->theme['stylesheet'] = $a->getBaseURL() . '/view/install/style.css';
@ -303,8 +303,9 @@ class Install extends BaseModule
* *
* @return string The manual config text * @return string The manual config text
*/ */
private static function manualConfig($a) { private static function manualConfig($a)
$data = htmlentities($a->data['txt'],ENT_COMPAT, 'UTF-8'); {
$data = htmlentities($a->data['txt'], ENT_COMPAT, 'UTF-8');
$output = L10n::t('The database configuration file "config/local.ini.php" could not be written. Please use the enclosed text to create a configuration file in your web server root.'); $output = L10n::t('The database configuration file "config/local.ini.php" could not be written. Please use the enclosed text to create a configuration file in your web server root.');
$output .= "<textarea rows=\"24\" cols=\"80\" >$data</textarea>"; $output .= "<textarea rows=\"24\" cols=\"80\" >$data</textarea>";
return $output; return $output;
@ -317,14 +318,15 @@ class Install extends BaseModule
* *
* @return string The text for the next steps * @return string The text for the next steps
*/ */
private static function whatNext($a) { private static function whatNext($a)
{
$baseurl = $a->getBaseUrl(); $baseurl = $a->getBaseUrl();
return return
L10n::t('<h1>What next</h1>') L10n::t('<h1>What next</h1>')
."<p>".L10n::t('IMPORTANT: You will need to [manually] setup a scheduled task for the worker.') . "<p>".L10n::t('IMPORTANT: You will need to [manually] setup a scheduled task for the worker.')
.L10n::t('Please see the file "INSTALL.txt".') . L10n::t('Please see the file "INSTALL.txt".')
."</p><p>" . "</p><p>"
.L10n::t('Go to your new Friendica node <a href="%s/register">registration page</a> and register as new user. Remember to use the same email you have entered as administrator email. This will allow you to enter the site admin panel.', $baseurl) . L10n::t('Go to your new Friendica node <a href="%s/register">registration page</a> and register as new user. Remember to use the same email you have entered as administrator email. This will allow you to enter the site admin panel.', $baseurl)
."</p>"; . "</p>";
} }
} }