From 702f37ccc50397c0d042627983d26d22195192aa Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 14 Apr 2011 22:02:23 +1000 Subject: theme update --- templates/homepage/basic/theme.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'templates/homepage/basic/theme.php') diff --git a/templates/homepage/basic/theme.php b/templates/homepage/basic/theme.php index 6a6f0bfa..401d3f5a 100644 --- a/templates/homepage/basic/theme.php +++ b/templates/homepage/basic/theme.php @@ -25,15 +25,16 @@ // Unique function name for building everything $theme['build_function'] = 'basic_build'; - function basic_build($action, $settings) { - // Possible values for $action: - // - all (rebuild everything, initialization) - // - news (news has been updated) - // - boards (board list changed) - - Basic::build($action, $settings); + if(!function_exists('basic_build')) { + function basic_build($action, $settings) { + // Possible values for $action: + // - all (rebuild everything, initialization) + // - news (news has been updated) + // - boards (board list changed) + + Basic::build($action, $settings); + } } - // Wrap functions in a class so they don't interfere with normal Tinyboard operations class Basic { public static function build($action, $settings) { -- cgit v1.3