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

View file

@ -50,8 +50,8 @@ class Install extends BaseModule
Core\System::httpExit(204);
}
// We overwrite current theme css, because during install we clould 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
// We overwrite current theme css, because during install we may not have a working mod_rewrite
// 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->theme['stylesheet'] = $a->getBaseURL() . '/view/install/style.css';
@ -303,7 +303,8 @@ class Install extends BaseModule
*
* @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');
$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>";
@ -317,7 +318,8 @@ class Install extends BaseModule
*
* @return string The text for the next steps
*/
private static function whatNext($a) {
private static function whatNext($a)
{
$baseurl = $a->getBaseUrl();
return
L10n::t('<h1>What next</h1>')