*/
class Home extends BaseModule
{
- public static function content()
+ public static function content(array $parameters = [])
{
- if (!empty($_SESSION['theme'])) {
- unset($_SESSION['theme']);
- }
-
- if (!empty($_SESSION['mobile-theme'])) {
- unset($_SESSION['mobile-theme']);
- }
-
$app = self::getApp();
$config = $app->getConfig();
$customHome = '';
$defaultHeader = ($config->get('config', 'sitename') ? L10n::t('Welcome to %s', $config->get('config', 'sitename')) : '');
- $homeFilePath = $app->getBaseURL() . '/home.html';
- $cssFilePath = $app->getBaseURL() . '/home.css';
+ $homeFilePath = $app->getBasePath() . '/home.html';
+ $cssFilePath = $app->getBasePath() . '/home.css';
if (file_exists($homeFilePath)) {
$customHome = $homeFilePath;