summaryrefslogtreecommitdiff
path: root/blocks/theme_select.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-04-14 17:10:47 +0000
committerfisharebest <fisharebest@gmail.com>2010-04-14 17:10:47 +0000
commitd6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef (patch)
tree3414719d8adcd1f924e68fc1e30cc3f0c179bbd4 /blocks/theme_select.php
parentfbeac796c9d96deb89bfccf12be80641bf5b6288 (diff)
downloadwebtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.tar.gz
webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.tar.bz2
webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.zip
Make block initialisation consistent
Diffstat (limited to 'blocks/theme_select.php')
-rw-r--r--blocks/theme_select.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/blocks/theme_select.php b/blocks/theme_select.php
index a2d4dfa087..904ed1d1f3 100644
--- a/blocks/theme_select.php
+++ b/blocks/theme_select.php
@@ -36,11 +36,15 @@ if (!defined('WT_WEBTREES')) {
define('WT_THEME_SELECT_PHP', '');
-$WT_BLOCKS["print_block_theme_select"]["name"] = i18n::translate('Theme Select');
-$WT_BLOCKS["print_block_theme_select"]["descr"] = i18n::translate('The Theme Select block displays the Theme selector even when the Change Theme feature is disabled.');
-$WT_BLOCKS["print_block_theme_select"]["type"] = "gedcom";
-$WT_BLOCKS["print_block_theme_select"]["canconfig"] = false;
-$WT_BLOCKS["print_block_theme_select"]["config"] = array("cache"=>-1);
+$WT_BLOCKS['print_block_theme_select']=array(
+ 'name'=>i18n::translate('Theme Select'),
+ 'type'=>'gedcom',
+ 'descr'=>i18n::translate('The Theme Select block displays the Theme selector even when the Change Theme feature is disabled.'),
+ 'canconfig'=>false,
+ 'config'=>array(
+ 'cache'=>-1
+ )
+);
function print_block_theme_select($style=0, $config="", $side, $index) {
global $ALLOW_THEME_DROPDOWN, $ALLOW_USER_THEMES, $THEME_DIR, $themeformcount;