This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/controllers/StaticController.php

17 lines
331 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<?php
class StaticController extends ApplicationController
{
protected function init()
{
$this->setLayout('bare');
}
public function index()
{
if (CONFIG()->skip_homepage)
$this->redirectTo('post#index');
else
$this->post_count = Post::fast_count();
}
}