Added changes to constants.php / added ACP modules, etc
This commit is contained in:
@@ -21,7 +21,7 @@ class acp_pallet
|
||||
|
||||
define('IN_PALLET_ACP', true);
|
||||
|
||||
$block_sql = 'SELECT * FROM phpbb_portal_blocks ORDER BY block_position ASC , block_order ASC';
|
||||
$block_sql = 'SELECT * FROM ' . PORTAL_BLOCKS_TABLE . ' ORDER BY block_position ASC , block_order ASC';
|
||||
$block_result = $db->sql_query($block_sql);
|
||||
|
||||
$template->assign_vars(array(
|
||||
@@ -141,7 +141,7 @@ class acp_pallet
|
||||
$template->assign_block_vars('table_row', $table_row);
|
||||
}
|
||||
|
||||
$l_title = 'ACP_ATTACHMENT_LAYOUT';
|
||||
$l_title = 'ACP_PALLET_LAYOUT';
|
||||
|
||||
$this->tpl_name = 'acp_pallet';
|
||||
$this->page_title = $l_title;
|
||||
|
||||
@@ -44,21 +44,9 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_GENERAL_INFO',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_GENERAL_SETTINGS',
|
||||
'portal_advanced_stat' => array('lang' => 'PORTAL_ADVANCED_STAT' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_search' => array('lang' => 'PORTAL_SEARCH' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_leaders' => array('lang' => 'PORTAL_LEADERS' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_leaders_ext' => array('lang' => 'PORTAL_LEADERS_EXT' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_clock' => array('lang' => 'PORTAL_CLOCK' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_link_us' => array('lang' => 'PORTAL_LINK_US' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_birthdays' => array('lang' => 'PORTAL_BIRTHDAYS' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_birthdays_ahead' => array('lang' => 'PORTAL_BIRTHDAYS_AHEAD' , 'validate' => 'int' , 'type' => 'text:3:3' , 'explain' => true),
|
||||
'portal_random_member' => array('lang' => 'PORTAL_RANDOM_MEMBER' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_forum_index' => array('lang' => 'PORTAL_FORUM_INDEX' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_whois_online' => array('lang' => 'PORTAL_WHOIS_ONLINE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_change_style' => array('lang' => 'PORTAL_CHANGE_STYLE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_main_menu' => array('lang' => 'PORTAL_MAIN_MENU' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_user_menu' => array('lang' => 'PORTAL_USER_MENU' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_friends' => array('lang' => 'PORTAL_FRIENDS' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_max_online_friends' => array('lang' => 'PORTAL_MAX_ONLINE_FRIENDS' , 'validate' => 'int' , 'type' => 'text:3:3' , 'explain' => true),
|
||||
|
||||
'legend2' => 'ACP_PORTAL_COLUMN_WIDTH_SETTINGS',
|
||||
@@ -72,7 +60,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_NEWS_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_NEWS_SETTINGS',
|
||||
'portal_news' => array('lang' => 'PORTAL_NEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_news_style' => array('lang' => 'PORTAL_NEWS_STYLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_show_all_news' => array('lang' => 'PORTAL_SHOW_ALL_NEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_number_of_news' => array('lang' => 'PORTAL_NUMBER_OF_NEWS', 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
@@ -90,7 +77,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_ANNOUNCE_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_ANNOUNCE_SETTINGS',
|
||||
'portal_announcements' => array('lang' => 'PORTAL_ANNOUNCEMENTS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_announcements_style' => array('lang' => 'PORTAL_ANNOUNCEMENTS_STYLE' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_number_of_announcements' => array('lang' => 'PORTAL_NUMBER_OF_ANNOUNCEMENTS' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_announcements_day' => array('lang' => 'PORTAL_ANNOUNCEMENTS_DAY' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
@@ -107,7 +93,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_RECENT_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_RECENT_SETTINGS',
|
||||
'portal_recent' => array('lang' => 'PORTAL_RECENT' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_max_topics' => array('lang' => 'PORTAL_MAX_TOPIC' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_recent_title_limit' => array('lang' => 'PORTAL_RECENT_TITLE_LIMIT' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_exclude_forums' => array('lang' => 'PORTAL_EXCLUDE_FORUM' , 'validate' => 'string', 'type' => 'text:10:200', 'explain' => true),
|
||||
@@ -119,7 +104,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_WORDGRAPH_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_WORDGRAPH_SETTINGS',
|
||||
'portal_wordgraph' => array('lang' => 'PORTAL_WORDGRAPH' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_wordgraph_max_words' => array('lang' => 'PORTAL_WORDGRAPH_MAX_WORDS' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_wordgraph_word_counts' => array('lang' => 'PORTAL_WORDGRAPH_WORD_COUNTS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_wordgraph_ratio' => array('lang' => 'PORTAL_WORDGRAPH_RATIO' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
@@ -131,8 +115,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_PAYPAL_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend2' => 'ACP_PORTAL_PAYPAL_SETTINGS',
|
||||
'portal_pay_c_block' => array('lang' => 'PORTAL_PAY_C_BLOCK' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_pay_s_block' => array('lang' => 'PORTAL_PAY_S_BLOCK' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_pay_acc' => array('lang' => 'PORTAL_PAY_ACC' , 'validate' => 'string', 'type' => 'text:25:100', 'explain' => true),
|
||||
)
|
||||
);
|
||||
@@ -142,7 +124,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_ATTACHMENTS_NUMBER_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_ATTACHMENTS_NUMBER_SETTINGS',
|
||||
'portal_attachments' => array('lang' => 'PORTAL_ATTACHMENTS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_attachments_number' => array('lang' => 'PORTAL_ATTACHMENTS_NUMBER' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_attachments_forum_ids' => array('lang' => 'PORTAL_ATTACHMENTS_FORUM_IDS', 'validate' => 'string', 'type' => 'text:10:200', 'explain' => true),
|
||||
)
|
||||
@@ -153,7 +134,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_MEMBERS_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_MEMBERS_SETTINGS',
|
||||
'portal_latest_members' => array('lang' => 'PORTAL_LATEST_MEMBERS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_max_last_member' => array('lang' => 'PORTAL_MAX_LAST_MEMBER' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
)
|
||||
);
|
||||
@@ -185,7 +165,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_MOST_POSTER_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_MOST_POSTER_SETTINGS',
|
||||
'portal_top_posters' => array('lang' => 'PORTAL_TOP_POSTERS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_max_most_poster' => array('lang' => 'PORTAL_MAX_MOST_POSTER' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
)
|
||||
);
|
||||
@@ -196,7 +175,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_WELCOME_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_WELCOME_SETTINGS',
|
||||
'portal_welcome' => array('lang' => 'PORTAL_WELCOME' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_welcome_guest' => array('lang' => 'PORTAL_WELCOME_GUEST' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_welcome_intro' => array('lang' => 'PORTAL_WELCOME_INTRO' , 'type' => 'textarea:6:6', 'explain' => true),
|
||||
)
|
||||
@@ -208,12 +186,10 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_CUSTOM_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_CUSTOM_SMALL_SETTINGS',
|
||||
'portal_custom_small' => array('lang' => 'PORTAL_CUSTOM_SMALL' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_custom_small_headline' => array('lang' => 'PORTAL_CUSTOM_SMALL_HEADLINE' , 'validate' => 'string', 'type' => 'text:40:200', 'explain' => true),
|
||||
'portal_custom_small_bbcode' => array('lang' => 'PORTAL_CUSTOM_SMALL_BBCODE' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_custom_code_small' => array('lang' => 'PORTAL_CUSTOM_CODE_SMALL' , 'type' => 'textarea:6:6', 'explain' => true),
|
||||
'legend2' => 'ACP_PORTAL_CUSTOM_CENTER_SETTINGS',
|
||||
'portal_custom_center' => array('lang' => 'PORTAL_CUSTOM_CENTER' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_custom_center_headline' => array('lang' => 'PORTAL_CUSTOM_CENTER_HEADLINE' , 'validate' => 'string', 'type' => 'text:40:200', 'explain' => true),
|
||||
'portal_custom_center_bbcode' => array('lang' => 'PORTAL_CUSTOM_CENTER_BBCODE' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_custom_code_center' => array('lang' => 'PORTAL_CUSTOM_CODE_CENTER' , 'type' => 'textarea:6:6', 'explain' => true),
|
||||
@@ -226,7 +202,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_MINICALENDAR_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_MINICALENDAR_SETTINGS',
|
||||
'portal_minicalendar' => array('lang' => 'PORTAL_MINICALENDAR' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_minicalendar_today_color' => array('lang' => 'PORTAL_MINICALENDAR_TODAY_COLOR' , 'validate' => 'string', 'type' => 'text:10:10', 'explain' => true),
|
||||
'portal_minicalendar_day_link_color' => array('lang' => 'PORTAL_MINICALENDAR_DAY_LINK_COLOR' , 'validate' => 'string', 'type' => 'text:10:10', 'explain' => true),
|
||||
)
|
||||
@@ -237,7 +212,6 @@ class acp_portal
|
||||
'title' => 'ACP_PORTAL_LINKS_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_LINKS_SETTINGS',
|
||||
'portal_links' => array('lang' => 'PORTAL_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
)
|
||||
);
|
||||
// Links require preprocessing
|
||||
|
||||
@@ -496,6 +496,29 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') )
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($linkblock);
|
||||
$palletlist = array(
|
||||
'module_basename' => 'pallet',
|
||||
'module_enabled' => 1,
|
||||
'module_display' => 1,
|
||||
'parent_id' => $portal['module_id'],
|
||||
'module_class' => 'acp',
|
||||
'module_langname' => 'ACP_PALLET_LIST_INFO',
|
||||
'module_mode' => 'list',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($palletlist);
|
||||
$portallayout = array(
|
||||
'module_basename' => 'pallet',
|
||||
'module_enabled' => 1,
|
||||
'module_display' => 1,
|
||||
'parent_id' => $portal['module_id'],
|
||||
'module_class' => 'acp',
|
||||
'module_langname' => 'ACP_PORTAL_LAYOUT_INFO',
|
||||
'module_mode' => 'layout',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($portallayout);
|
||||
|
||||
// clear cache and log what we did
|
||||
$cache->purge();
|
||||
add_log('admin', $page_title . ' installed');
|
||||
@@ -855,7 +878,29 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') )
|
||||
'module_mode' => 'links',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($linkblock);
|
||||
$modules->update_module_data($linkblock);
|
||||
$palletlist = array(
|
||||
'module_basename' => 'pallet',
|
||||
'module_enabled' => 1,
|
||||
'module_display' => 1,
|
||||
'parent_id' => $portal['module_id'],
|
||||
'module_class' => 'acp',
|
||||
'module_langname' => 'ACP_PALLET_LIST_INFO',
|
||||
'module_mode' => 'list',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($palletlist);
|
||||
$portallayout = array(
|
||||
'module_basename' => 'pallet',
|
||||
'module_enabled' => 1,
|
||||
'module_display' => 1,
|
||||
'parent_id' => $portal['module_id'],
|
||||
'module_class' => 'acp',
|
||||
'module_langname' => 'ACP_PORTAL_LAYOUT_INFO',
|
||||
'module_mode' => 'layout',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($portallayout);
|
||||
|
||||
// clear cache and log what we did
|
||||
$cache->purge();
|
||||
@@ -1010,6 +1055,8 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') )
|
||||
OR module_langname = 'ACP_PORTAL_MINICALENDAR_INFO'
|
||||
OR module_langname = 'ACP_PORTAL_CUSTOM_INFO'
|
||||
OR module_langname = 'ACP_PORTAL_LINKS_INFO'
|
||||
OR module_langname = 'ACP_PALLET_LIST_INFO'
|
||||
OR module_langname = 'ACP_PORTAL_LAYOUT_INFO'
|
||||
";
|
||||
$result = $db->sql_query($sql);
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
|
||||
@@ -11,7 +11,7 @@ CREATE TABLE phpbb_portal_config (
|
||||
|
||||
# Table: 'phpbb_portal_blocks'
|
||||
CREATE TABLE phpbb_portal_blocks (
|
||||
block_name varchar(64) NOT NULL,
|
||||
block_name varbinary(64) NOT NULL,
|
||||
block_type tinyint(1) DEFAULT '0' NOT NULL,
|
||||
block_enabled tinyint(1) DEFAULT '0' NOT NULL,
|
||||
block_position tinyint(1) DEFAULT '0' NOT NULL,
|
||||
|
||||
@@ -53,6 +53,7 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_anno
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:"text";s:9:"Board3.de";s:3:"url";s:21:"http://www.board3.de/";}i:2;a:2:{s:4:"text";s:9:"phpBB.com";s:3:"url";s:21:"http://www.phpbb.com/";}}');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_show_announcements_replies_views', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_show_news_replies_views', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_welcome_guest', '1');
|
||||
|
||||
# Inserts who have to be checked at a later stage of the block pallet feature #
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_leaders_ext', '0');
|
||||
@@ -76,7 +77,6 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_foru
|
||||
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_top_posters', '1'); #
|
||||
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_leaders', '1'); #
|
||||
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_advanced_stat', '1'); #
|
||||
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_welcome_guest', '1'); #
|
||||
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_birthdays', '1'); #
|
||||
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_search', '1'); #
|
||||
# INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_friends', '1'); #
|
||||
|
||||
@@ -37,6 +37,8 @@ $lang = array_merge($lang, array(
|
||||
'ACP_PORTAL_CUSTOM_INFO' => 'Eigener Block',
|
||||
'ACP_PORTAL_MINICALENDAR_INFO' => 'Mini-Kalender',
|
||||
'ACP_PORTAL_LINKS_INFO' => 'Links',
|
||||
'ACP_PALLET_LIST_INFO' => 'Block Verwaltung',
|
||||
'ACP_PORTAL_LAYOUT_INFO' => 'Portal Layout',
|
||||
));
|
||||
|
||||
?>
|
||||
40
root/language/de/mods/lang_pallet_acp.php
Normal file
40
root/language/de/mods/lang_pallet_acp.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package - Board3portal
|
||||
* @version $Id$
|
||||
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
|
||||
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
|
||||
* @translator (c) ( You - http://www.yourdomain.com )
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = array();
|
||||
}
|
||||
|
||||
// DEVELOPERS PLEASE NOTE
|
||||
//
|
||||
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
||||
//
|
||||
// Placeholders can now contain order information, e.g. instead of
|
||||
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
||||
// translators to re-order the output of data while ensuring it remains correct
|
||||
//
|
||||
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
||||
// equally where a string contains only two placeholders which are used to wrap text
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
'MOVE_LEFT' => 'Move left',
|
||||
'MOVE_RIGHT' => 'Move right',
|
||||
));
|
||||
|
||||
?>
|
||||
@@ -38,6 +38,8 @@ $lang = array_merge($lang, array(
|
||||
'ACP_PORTAL_CUSTOM_INFO' => 'Custom block',
|
||||
'ACP_PORTAL_MINICALENDAR_INFO' => 'Mini calendar',
|
||||
'ACP_PORTAL_LINKS_INFO' => 'Links',
|
||||
'ACP_PALLET_LIST_INFO' => 'Pallet list',
|
||||
'ACP_PORTAL_LAYOUT_INFO' => 'Portal layout',
|
||||
));
|
||||
|
||||
?>
|
||||
@@ -101,7 +101,7 @@ if ( $load_center != TRUE )
|
||||
$where = '';
|
||||
}
|
||||
|
||||
$block_sql = 'SELECT * FROM phpbb_portal_blocks WHERE block_enabled = 1'.$where.' ORDER BY block_position ASC , block_order ASC';
|
||||
$block_sql = 'SELECT * FROM ' . PORTAL_BLOCKS_TABLE . ' WHERE block_enabled = 1'.$where.' ORDER BY block_position ASC , block_order ASC';
|
||||
$block_result = $db->sql_query($block_sql);
|
||||
|
||||
while ($block_row = $db->sql_fetchrow($block_result))
|
||||
|
||||
Reference in New Issue
Block a user