diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-14 22:02:23 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-14 22:02:23 +1000 |
| commit | 702f37ccc50397c0d042627983d26d22195192aa (patch) | |
| tree | 8a72db1e029344fdd447cb62d971d61ce303d639 /templates | |
| parent | da6d9c4d2e985f0086bc48b7b61fb163c6d4b56e (diff) | |
theme update
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/homepage/basic/theme.php | 17 | ||||
| -rw-r--r-- | templates/homepage/frameset/theme.php | 16 |
2 files changed, 18 insertions, 15 deletions
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) { diff --git a/templates/homepage/frameset/theme.php b/templates/homepage/frameset/theme.php index 6c82f0b1..ff81608a 100644 --- a/templates/homepage/frameset/theme.php +++ b/templates/homepage/frameset/theme.php @@ -28,13 +28,15 @@ Users never have to leave the homepage; they can do all their browsing from the // Unique function name for building everything $theme['build_function'] = 'frameset_build'; - function frameset_build($action, $settings) { - // Possible values for $action: - // - all (rebuild everything, initialization) - // - news (news has been updated) - // - boards (board list changed) - - Frameset::build($action, $settings); + if(!function_exists('frameset_build')) { + function frameset_build($action, $settings) { + // Possible values for $action: + // - all (rebuild everything, initialization) + // - news (news has been updated) + // - boards (board list changed) + + Frameset::build($action, $settings); + } } // Wrap functions in a class so they don't interfere with normal Tinyboard operations |
