1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-12 18:16:22 +02:00

Version 1.1.7 Improved Session Management

This commit is contained in:
Sebastian
2018-06-03 22:14:29 +02:00
parent 6b7fac91a4
commit 2b24c03148
3 changed files with 15 additions and 5 deletions

2
cache/lastCache.txt vendored
View File

@ -1 +1 @@
1527608103
1528043723

View File

@ -38,9 +38,17 @@ class SettingsController extends Controller
if($newSettings)
{
$copyright = $this->getCopyright();
$newSettings['startpage'] = isset($newSettings['startpage']) ? true : false;
/* make sure only allowed fields are stored */
$newSettings = array(
'title' => $newSettings['title'],
'author' => $newSettings['author'],
'copyright' => $newSettings['copyright'],
'year' => $newSettings['year'],
'statpage' => isset($newSettings['startpage']) ? true : false
);
$copyright = $this->getCopyright();
$validate->settings($newSettings, $copyright, 'settings');
}
@ -572,7 +580,7 @@ class SettingsController extends Controller
"None"
);
}
private function getLanguages()
{
return array(

View File

@ -3,10 +3,12 @@
<h1>{{ item.name }}</h1>
{% endif %}
<h1>{{ }}</h1>
{{ content }}
{% if settings.themes.typemill.modified %}
{% if settings.themes.typemill.modified %}
<p><small>{{ settings.themes.typemill.modifiedText }}: {{ item.modified|date(settings.themes.typemill.modifiedFormat) }}</small></p>
{% endif %}