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
2013-10-26 18:06:58 -05:00

17 lines
331 B
PHP
Executable File

<?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();
}
}