From 7faf46beb98ca8ef8ac2b7b2ba83b99a39461443 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 10 Nov 2013 11:18:00 +0100 Subject: [PATCH] Changed .ini a bit --- config.ini | 4 +++- src/Controllers/IndexController.php | 2 +- src/Views/layout-normal.phtml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.ini b/config.ini index 64aa45d9..a4f49cd6 100644 --- a/config.ini +++ b/config.ini @@ -8,9 +8,11 @@ filesPath=./files/ thumbsPath=./thumbs/ mediaPath=./public_html/media/ title=szurubooru +salt = "1A2/$_4xVa" + +[misc] featuredPostMaxDays=7 debugQueries=0 -salt = "1A2/$_4xVa" [browsing] usersPerPage=8 diff --git a/src/Controllers/IndexController.php b/src/Controllers/IndexController.php index 64096d5f..a360f305 100644 --- a/src/Controllers/IndexController.php +++ b/src/Controllers/IndexController.php @@ -11,7 +11,7 @@ class IndexController $this->context->stylesheets []= 'index-index.css'; $this->context->transport->postCount = R::$f->begin()->select('count(1)')->as('count')->from('post')->get('row')['count']; - $featuredPostRotationTime = $this->config->main->featuredPostMaxDays * 24 * 3600; + $featuredPostRotationTime = $this->config->misc->featuredPostMaxDays * 24 * 3600; $featuredPostId = Model_Property::get(Model_Property::FeaturedPostId); $featuredPostUserId = Model_Property::get(Model_Property::FeaturedPostUserId); diff --git a/src/Views/layout-normal.phtml b/src/Views/layout-normal.phtml index 57c416f4..7536d9dc 100644 --- a/src/Views/layout-normal.phtml +++ b/src/Views/layout-normal.phtml @@ -98,7 +98,7 @@
Load: s Queries: getLogs()) ?> - config->main->debugQueries): ?> + config->misc->debugQueries): ?>
', array_map(function($x) { return preg_replace('/\s+/', ' ', $x); }, queryLogger()->getLogs())) ?>
szurubooru v