mirror of
https://github.com/sruupl/batflat.git
synced 2026-01-12 08:52:07 +01:00
31 lines
724 B
PHP
31 lines
724 B
PHP
<?php
|
|
/**
|
|
* This file is part of Batflat ~ the lightweight, fast and easy CMS
|
|
*
|
|
* @author Paweł Klockiewicz <klockiewicz@sruu.pl>
|
|
* @author Wojciech Król <krol@sruu.pl>
|
|
* @copyright 2017 Paweł Klockiewicz, Wojciech Król <Sruu.pl>
|
|
* @license https://batflat.org/license
|
|
* @link https://batflat.org
|
|
*/
|
|
|
|
namespace Inc\Modules\Settings;
|
|
|
|
use Inc\Core\SiteModule;
|
|
|
|
class Site extends SiteModule
|
|
{
|
|
public function init()
|
|
{
|
|
$this->_importSettings();
|
|
}
|
|
|
|
private function _importSettings()
|
|
{
|
|
$tmp = $this->core->settings->all();
|
|
$tmp = array_merge($tmp, $tmp['settings']);
|
|
unset($tmp['settings']);
|
|
$this->tpl->set('settings', $tmp);
|
|
}
|
|
}
|