forked from leftypol/leftypol
fix fatal errors. works with v0.9.6
This commit is contained in:
parent
1758f750fd
commit
e056b1eb70
3 changed files with 111 additions and 115 deletions
|
@ -33,10 +33,6 @@ if(!getenv('TINYBOARD_PATH')) {
|
||||||
putenv('TINYBOARD_PATH=' . getcwd());
|
putenv('TINYBOARD_PATH=' . getcwd());
|
||||||
|
|
||||||
require 'inc/functions.php';
|
require 'inc/functions.php';
|
||||||
require 'inc/display.php';
|
|
||||||
require 'inc/template.php';
|
|
||||||
require 'inc/database.php';
|
|
||||||
require 'inc/user.php';
|
|
||||||
require 'inc/mod.php';
|
require 'inc/mod.php';
|
||||||
|
|
||||||
$mod = Array(
|
$mod = Array(
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* rebuild.php - rebuilds all static files
|
* rebuild.php - rebuilds all static files
|
||||||
*
|
*
|
||||||
|
@ -40,9 +41,8 @@
|
||||||
|
|
||||||
if(!$options['quiet'])
|
if(!$options['quiet'])
|
||||||
echo "Clearing template cache...\n";
|
echo "Clearing template cache...\n";
|
||||||
$twig = new Twig_Environment($loader, Array(
|
|
||||||
'cache' => "{$config['dir']['template']}/cache"
|
load_twig();
|
||||||
));
|
|
||||||
$twig->clearCacheFiles();
|
$twig->clearCacheFiles();
|
||||||
|
|
||||||
if(!$options['quiet'])
|
if(!$options['quiet'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue