fix fatal errors. works with v0.9.6

This commit is contained in:
Michael Save 2012-04-12 12:53:45 +10:00
parent 1758f750fd
commit e056b1eb70
3 changed files with 111 additions and 115 deletions

View File

@ -33,10 +33,6 @@ if(!getenv('TINYBOARD_PATH')) {
putenv('TINYBOARD_PATH=' . getcwd());
require 'inc/functions.php';
require 'inc/display.php';
require 'inc/template.php';
require 'inc/database.php';
require 'inc/user.php';
require 'inc/mod.php';
$mod = Array(

View File

@ -1,5 +1,6 @@
#!/usr/bin/php
<?php
/*
* rebuild.php - rebuilds all static files
*
@ -40,9 +41,8 @@
if(!$options['quiet'])
echo "Clearing template cache...\n";
$twig = new Twig_Environment($loader, Array(
'cache' => "{$config['dir']['template']}/cache"
));
load_twig();
$twig->clearCacheFiles();
if(!$options['quiet'])