|
From: <dac...@us...> - 2007-09-02 06:19:08
|
Revision: 49
http://thevr.svn.sourceforge.net/thevr/?rev=49&view=rev
Author: dachebodt
Date: 2007-09-01 23:19:04 -0700 (Sat, 01 Sep 2007)
Log Message:
-----------
Fixed syntax error
Modified Paths:
--------------
mods/cms/trunk/modules/blocks/info/acp_blocks.php
Modified: mods/cms/trunk/modules/blocks/info/acp_blocks.php
===================================================================
--- mods/cms/trunk/modules/blocks/info/acp_blocks.php 2007-09-02 06:17:57 UTC (rev 48)
+++ mods/cms/trunk/modules/blocks/info/acp_blocks.php 2007-09-02 06:19:04 UTC (rev 49)
@@ -29,7 +29,7 @@
function install()
{
- global $db, $phpbb_root_path, $phpEx;
+ global $db, $config, $phpbb_root_path, $phpEx;
include_once($phpbb_root_path . "modules/blocks/constants.$phpEx");
@@ -45,7 +45,7 @@
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_bin;";
$sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (1, 'left', 'Left Column', 1, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (2, 'right', 'Right Column', 1, 0, '513', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (2, 'right', 'Right Column', 1, 0, '', 1);";
$sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (4, 'top', '', 0, 0, '', 1);";
$sql_ary[] = 'INSERT INTO ' . BLOCK_POSITIONS_TABLE . " VALUES (9, 'bottom', '', 0, 0, '', 1);";
@@ -59,20 +59,21 @@
`style` mediumint(8) NOT NULL default '0',
`permission` varchar(125) default NULL,
`class` char(10) NOT NULL,
- `xfer_to` tinyint(2) NOT NULL,
+ `xfer_to` tinyint(2) NOT NULL default '',
`xtype` tinyint(1) NOT NULL default '0',
`xmodules` varchar(125) default NULL,
`status` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`bid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_bin;";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (1, 'main_menu, 'blocks', 0, 1, 0, 1, 'default', '', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (2, 'whois', 'blocks', 0, 1, 1, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (3, 'birthday', 'blocks', 0, 1, 2, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (4, 'login', 'blocks', 1, 2, 0, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (5, 'user_menu', 'blocks', 1, 2, 1, 1, 0, 'default', 0, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (6, 'recent_topics', 'forums', 1, 2, 2, 1, 0, 'default', 1, 0, '', 1);";
- $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (7, 'stats', 'blocks', 0, 2, 3, 1, 0, 'default', 0, 0, '', 1);";
+ $style = $config['default_style'];
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (1, 'main_menu', 'blocks', 0, 1, 0, $style, 0, '', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (2, 'whois', 'blocks', 0, 1, 1, $style, 0, '', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (3, 'birthday', 'blocks', 0, 1, 2, $style, 0, '', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (4, 'login', 'blocks', 0, 2, 0, $style, 0, '', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (5, 'user_menu', 'blocks', 0, 2, 1, $style, 0, '', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (6, 'recent_topics', 'forums', 0, 2, 2, $style, 0, '', 0, 0, '', 1);";
+ $sql_ary[] = 'INSERT INTO ' . BLOCKS_TABLE . " VALUES (7, 'stats', 'blocks', 0, 2, 3, $style, 0, '', 0, 0, '', 1);";
$sql_ary[] = 'CREATE TABLE IF NOT EXISTS ' . BLOCKS_CONFIG_TABLE . " (
`bid` mediumint(8) NOT NULL,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|