', array_map(function($x) { return preg_replace('/\s+/', ' ', $x); }, queryLogger()->getLogs())) ?>szurubooru v
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 @@
', array_map(function($x) { return preg_replace('/\s+/', ' ', $x); }, queryLogger()->getLogs())) ?>szurubooru v