mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
fix fatal errors. works with v0.9.6
This commit is contained in:
parent
1758f750fd
commit
e056b1eb70
@ -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(
|
||||
|
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user