mirror of
https://github.com/phpbb/phpbb.git
synced 2025-09-12 01:00:43 +02:00
Compare commits
42 Commits
release-3.
...
release-3.
Author | SHA1 | Date | |
---|---|---|---|
|
b7243fad62 | ||
|
8a1d148fa8 | ||
|
fab57f0d16 | ||
|
27abc18662 | ||
|
9e6c2251df | ||
|
15ba5f700d | ||
|
f8e1c66e81 | ||
|
c89f4500f0 | ||
|
7182f5d88f | ||
|
db7f4d4c95 | ||
|
b8bdccbc44 | ||
|
2eb2c69db9 | ||
|
d5147c2271 | ||
|
79e6636092 | ||
|
5179e4f93f | ||
|
dc96e70d1b | ||
|
717d4840e2 | ||
|
22b8b45f28 | ||
|
6c5578a65b | ||
|
bf42eae114 | ||
|
f21a43be2f | ||
|
3606cce27f | ||
|
5b3eb2d61c | ||
|
fcd916cc4f | ||
|
f3b94b118a | ||
|
2e8315353e | ||
|
97912d74e2 | ||
|
da9da88d11 | ||
|
af1e8901e5 | ||
|
a2480f992d | ||
|
b8f85325d8 | ||
|
c4741399dd | ||
|
b03da3a9b2 | ||
|
7801bac09a | ||
|
720477a9da | ||
|
11ae11a156 | ||
|
5d4fccd235 | ||
|
dbb476d813 | ||
|
f4063e475d | ||
|
e64f96bf27 | ||
|
9e375f32eb | ||
|
379900b4ed |
@@ -2,9 +2,9 @@
|
||||
|
||||
<project name="phpBB" description="The phpBB forum software" default="all" basedir="../">
|
||||
<!-- a few settings for the build -->
|
||||
<property name="newversion" value="3.2.4" />
|
||||
<property name="prevversion" value="3.2.3" />
|
||||
<property name="olderversions" value="3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7-pl1, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0-a1, 3.2.0-a2, 3.2.0-b1, 3.2.0-b2, 3.2.0-RC1, 3.2.0-RC2, 3.2.0, 3.2.1, 3.2.2, 3.2.4-RC1" />
|
||||
<property name="newversion" value="3.2.5-RC1" />
|
||||
<property name="prevversion" value="3.2.4" />
|
||||
<property name="olderversions" value="3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7-pl1, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0-a1, 3.2.0-a2, 3.2.0-b1, 3.2.0-b2, 3.2.0-RC1, 3.2.0-RC2, 3.2.0, 3.2.1, 3.2.2, 3.2.3" />
|
||||
<!-- no configuration should be needed beyond this point -->
|
||||
|
||||
<property name="oldversions" value="${olderversions}, ${prevversion}" />
|
||||
|
@@ -50,6 +50,7 @@
|
||||
<ol>
|
||||
<li><a href="#changelog">Changelog</a>
|
||||
<ul>
|
||||
<li><a href="#v324">Changes since 3.2.4</a></li>
|
||||
<li><a href="#v324rc1">Changes since 3.2.4-RC1</a></li>
|
||||
<li><a href="#v323">Changes since 3.2.3</a></li>
|
||||
<li><a href="#v323rc2">Changes since 3.2.3-RC2</a></li>
|
||||
@@ -133,6 +134,28 @@
|
||||
<div class="inner">
|
||||
|
||||
<div class="content">
|
||||
<a name="v324"></a><h3>Changes since 3.2.4</h3>
|
||||
<h4>Bug</h4>
|
||||
<ul>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15665">PHPBB3-15665</a>] - MSSQL implementation crashes when upload directory > 2GB</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15858">PHPBB3-15858</a>] - Unapproved User(s) appearing as Guest in Team Page.</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15867">PHPBB3-15867</a>] - Contact form without class</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15871">PHPBB3-15871</a>] - PHP 7.1+ warning in ACP extensions module</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15875">PHPBB3-15875</a>] - BBCode parsing error (PHP fatal error)</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15881">PHPBB3-15881</a>] - Login keys are not reset after password update in some cases</li>
|
||||
</ul>
|
||||
<h4>Improvement</h4>
|
||||
<ul>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15542">PHPBB3-15542</a>] - Some JS files being called without assets version</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15859">PHPBB3-15859</a>] - Modify the topic ordering if needed</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15863">PHPBB3-15863</a>] - Modify the topic sort ordering from the beginning</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15870">PHPBB3-15870</a>] - Modify the forum ID to handle the correct display of viewtopic if needed</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15872">PHPBB3-15872</a>] - Add show_user_activity to display_user_activity_modify_actives</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15873">PHPBB3-15873</a>] - Event to add/modify MCP report details template data.</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15878">PHPBB3-15878</a>] - Add attachment to core.ucp_pm_view_message</li>
|
||||
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15879">PHPBB3-15879</a>] - Modify attachment's poster_id for get_submitted_attachment_data</li>
|
||||
</ul>
|
||||
|
||||
<a name="v324rc1"></a><h3>Changes since 3.2.4-RC1</h3>
|
||||
<h4>Bug</h4>
|
||||
<ul>
|
||||
|
@@ -35,11 +35,13 @@ class acp_extensions
|
||||
private $request;
|
||||
private $phpbb_dispatcher;
|
||||
private $ext_manager;
|
||||
private $phpbb_container;
|
||||
private $php_ini;
|
||||
|
||||
function main()
|
||||
{
|
||||
// Start the page
|
||||
global $config, $user, $template, $request, $phpbb_extension_manager, $phpbb_root_path, $phpbb_log, $phpbb_dispatcher;
|
||||
global $config, $user, $template, $request, $phpbb_extension_manager, $phpbb_root_path, $phpbb_log, $phpbb_dispatcher, $phpbb_container;
|
||||
|
||||
$this->config = $config;
|
||||
$this->template = $template;
|
||||
@@ -48,6 +50,8 @@ class acp_extensions
|
||||
$this->log = $phpbb_log;
|
||||
$this->phpbb_dispatcher = $phpbb_dispatcher;
|
||||
$this->ext_manager = $phpbb_extension_manager;
|
||||
$this->phpbb_container = $phpbb_container;
|
||||
$this->php_ini = $this->phpbb_container->get('php_ini');
|
||||
|
||||
$this->user->add_lang(array('install', 'acp/extensions', 'migrator'));
|
||||
|
||||
@@ -57,7 +61,7 @@ class acp_extensions
|
||||
$ext_name = $this->request->variable('ext_name', '');
|
||||
|
||||
// What is a safe limit of execution time? Half the max execution time should be safe.
|
||||
$safe_time_limit = (ini_get('max_execution_time') / 2);
|
||||
$safe_time_limit = ($this->php_ini->getNumeric('max_execution_time') / 2);
|
||||
$start_time = time();
|
||||
|
||||
// Cancel action
|
||||
|
@@ -35,9 +35,18 @@ class bbcode
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Init bbcode cache entries if bitfield is specified
|
||||
*/
|
||||
function __construct($bitfield = '')
|
||||
{
|
||||
$this->bbcode_set_bitfield($bitfield);
|
||||
}
|
||||
|
||||
/**
|
||||
* Init bbcode cache entries if bitfield is specified
|
||||
*
|
||||
* @param string $bbcode_bitfield The bbcode bitfield
|
||||
*/
|
||||
function bbcode_set_bitfield($bitfield = '')
|
||||
{
|
||||
if ($bitfield)
|
||||
{
|
||||
|
@@ -28,7 +28,7 @@ if (!defined('IN_PHPBB'))
|
||||
*/
|
||||
|
||||
// phpBB Version
|
||||
@define('PHPBB_VERSION', '3.2.4');
|
||||
@define('PHPBB_VERSION', '3.2.5-RC1');
|
||||
|
||||
// QA-related
|
||||
// define('PHPBB_QA', 1);
|
||||
|
@@ -627,7 +627,7 @@ function generate_text_for_display($text, $uid, $bitfield, $flags, $censor_text
|
||||
}
|
||||
else
|
||||
{
|
||||
$bbcode->bbcode($bitfield);
|
||||
$bbcode->bbcode_set_bitfield($bitfield);
|
||||
}
|
||||
|
||||
$bbcode->bbcode_second_pass($text, $uid);
|
||||
|
@@ -1241,6 +1241,7 @@ function display_user_activity(&$userdata_ary)
|
||||
}
|
||||
|
||||
$userdata = $userdata_ary;
|
||||
$show_user_activity = true;
|
||||
/**
|
||||
* Alter list of forums and topics to display as active
|
||||
*
|
||||
@@ -1248,9 +1249,11 @@ function display_user_activity(&$userdata_ary)
|
||||
* @var array userdata User's data
|
||||
* @var array active_f_row List of active forums
|
||||
* @var array active_t_row List of active posts
|
||||
* @var bool show_user_activity Show user forum and topic activity
|
||||
* @since 3.1.0-RC3
|
||||
* @changed 3.2.5-RC1 Added show_user_activity into event
|
||||
*/
|
||||
$vars = array('userdata', 'active_f_row', 'active_t_row');
|
||||
$vars = array('userdata', 'active_f_row', 'active_t_row', 'show_user_activity');
|
||||
extract($phpbb_dispatcher->trigger_event('core.display_user_activity_modify_actives', compact($vars)));
|
||||
$userdata_ary = $userdata;
|
||||
unset($userdata);
|
||||
@@ -1287,7 +1290,7 @@ function display_user_activity(&$userdata_ary)
|
||||
'ACTIVE_TOPIC_PCT' => sprintf($l_active_pct, $active_t_pct),
|
||||
'U_ACTIVE_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $active_f_id),
|
||||
'U_ACTIVE_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $active_t_id),
|
||||
'S_SHOW_ACTIVITY' => true)
|
||||
'S_SHOW_ACTIVITY' => $show_user_activity)
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -246,7 +246,10 @@ class mcp_reports
|
||||
$parse_flags = ($post_info['user_sig_bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES;
|
||||
$post_info['user_sig'] = generate_text_for_display($post_info['user_sig'], $post_info['user_sig_bbcode_uid'], $post_info['user_sig_bbcode_bitfield'], $parse_flags, true);
|
||||
|
||||
$template->assign_vars(array(
|
||||
$topic_id = (int) $post_info['topic_id'];
|
||||
|
||||
// So it can be sent through the event below.
|
||||
$report_template = array(
|
||||
'S_MCP_REPORT' => true,
|
||||
'S_CLOSE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&mode=report_details&f=' . $post_info['forum_id'] . '&p=' . $post_id),
|
||||
'S_CAN_VIEWIP' => $auth->acl_get('m_info', $post_info['forum_id']),
|
||||
@@ -298,7 +301,33 @@ class mcp_reports
|
||||
'SIGNATURE' => $post_info['user_sig'],
|
||||
|
||||
'U_LOOKUP_IP' => ($auth->acl_get('m_info', $post_info['forum_id'])) ? $this->u_action . '&r=' . $report_id . '&p=' . $post_id . '&f=' . $forum_id . '&lookup=' . $post_info['poster_ip'] . '#ip' : '',
|
||||
));
|
||||
);
|
||||
|
||||
/**
|
||||
* Event to add/modify MCP report details template data.
|
||||
*
|
||||
* @event core.mcp_report_template_data
|
||||
* @var int forum_id The forum_id, the number in the f GET parameter
|
||||
* @var int topic_id The topic_id of the report being viewed
|
||||
* @var int post_id The post_id of the report being viewed (if 0, it is meaningless)
|
||||
* @var int report_id The report_id of the report being viewed
|
||||
* @var array report Array with the report data
|
||||
* @var array report_template Array with the report template data
|
||||
* @var array post_info Array with the reported post data
|
||||
* @since 3.2.5-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'forum_id',
|
||||
'topic_id',
|
||||
'post_id',
|
||||
'report_id',
|
||||
'report',
|
||||
'report_template',
|
||||
'post_info',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.mcp_report_template_data', compact($vars)));
|
||||
|
||||
$template->assign_vars($report_template);
|
||||
|
||||
$this->tpl_name = 'mcp_post';
|
||||
|
||||
|
@@ -87,6 +87,8 @@ class ucp_activate
|
||||
WHERE user_id = ' . $user_row['user_id'];
|
||||
$db->sql_query($sql);
|
||||
|
||||
$user->reset_login_keys($user_row['user_id']);
|
||||
|
||||
$phpbb_log->add('user', $user->data['user_id'], $user->ip, 'LOG_USER_NEW_PASSWORD', false, array(
|
||||
'reportee_id' => $user_row['user_id'],
|
||||
$user_row['username']
|
||||
|
@@ -296,7 +296,9 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||
* @var array cp_row Array with senders custom profile field data
|
||||
* @var array msg_data Template array with message data
|
||||
* @var array user_info User data of the sender
|
||||
* @var array attachments Attachments data
|
||||
* @since 3.2.2-RC1
|
||||
* @changed 3.2.5-RC1 Added attachments
|
||||
*/
|
||||
$vars = array(
|
||||
'id',
|
||||
@@ -308,6 +310,7 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||
'cp_row',
|
||||
'msg_data',
|
||||
'user_info',
|
||||
'attachments',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_view_message', compact($vars)));
|
||||
|
||||
|
@@ -38,7 +38,7 @@ $dbms = $phpbb_config_php_file->convert_30_dbms_to_31($dbms);
|
||||
$convertor_data = array(
|
||||
'forum_name' => 'phpBB 2.0.x',
|
||||
'version' => '1.0.3',
|
||||
'phpbb_version' => '3.2.4',
|
||||
'phpbb_version' => '3.2.5',
|
||||
'author' => '<a href="https://www.phpbb.com/">phpBB Limited</a>',
|
||||
'dbms' => $dbms,
|
||||
'dbhost' => $dbhost,
|
||||
|
@@ -23,7 +23,7 @@ if (php_sapi_name() !== 'cli')
|
||||
define('IN_PHPBB', true);
|
||||
define('IN_INSTALL', true);
|
||||
define('PHPBB_ENVIRONMENT', 'production');
|
||||
define('PHPBB_VERSION', '3.2.4');
|
||||
define('PHPBB_VERSION', '3.2.5-RC1');
|
||||
$phpbb_root_path = __DIR__ . '/../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
|
||||
|
@@ -279,7 +279,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('tpl_allow_php', '0
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_icons_path', 'images/upload_icons');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_path', 'files');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('use_system_cron', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '3.2.4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '3.2.5-RC1');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_expire_days', '90');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_gc', '14400');
|
||||
|
||||
|
@@ -173,7 +173,7 @@ switch ($mode)
|
||||
'LEFT_JOIN' => array(
|
||||
array(
|
||||
'FROM' => array(USERS_TABLE => 'u'),
|
||||
'ON' => 'ug.user_id = u.user_id AND ug.user_pending = 0',
|
||||
'ON' => 'ug.user_id = u.user_id',
|
||||
),
|
||||
array(
|
||||
'FROM' => array(GROUPS_TABLE => 'g'),
|
||||
@@ -181,7 +181,7 @@ switch ($mode)
|
||||
),
|
||||
),
|
||||
|
||||
'WHERE' => $db->sql_in_set('g.group_id', $group_ids, false, true),
|
||||
'WHERE' => $db->sql_in_set('g.group_id', $group_ids, false, true) . ' AND ug.user_pending = 0',
|
||||
|
||||
'ORDER_BY' => 'u.username_clean ASC',
|
||||
);
|
||||
|
@@ -60,6 +60,14 @@ abstract class mssql_base extends \phpbb\db\driver\driver
|
||||
return $expression . " ESCAPE '\\'";
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
function cast_expr_to_bigint($expression)
|
||||
{
|
||||
return 'CONVERT(BIGINT, ' . $expression . ')';
|
||||
}
|
||||
|
||||
/**
|
||||
* Build db-specific query data
|
||||
* @access private
|
||||
|
36
phpBB/phpbb/db/migration/data/v32x/v325rc1.php
Normal file
36
phpBB/phpbb/db/migration/data/v32x/v325rc1.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\db\migration\data\v32x;
|
||||
|
||||
class v325rc1 extends \phpbb\db\migration\migration
|
||||
{
|
||||
public function effectively_installed()
|
||||
{
|
||||
return phpbb_version_compare($this->config['version'], '3.2.5-RC1', '>=');
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return array(
|
||||
'\phpbb\db\migration\data\v32x\v324',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return array(
|
||||
array('config.update', array('version', '3.2.5-RC1')),
|
||||
);
|
||||
}
|
||||
}
|
@@ -50,7 +50,12 @@ abstract class includeasset extends \Twig_Node
|
||||
->write("\$asset->set_path(\$local_file, true);\n")
|
||||
->outdent()
|
||||
->write("}\n")
|
||||
->write("\$asset->add_assets_version('{$config['assets_version']}');\n")
|
||||
->outdent()
|
||||
->write("}\n")
|
||||
->write("\n")
|
||||
->write("if (\$asset->is_relative()) {\n")
|
||||
->indent()
|
||||
->write("\$asset->add_assets_version('{$config['assets_version']}');\n")
|
||||
->outdent()
|
||||
->write("}\n")
|
||||
->write("\$this->getEnvironment()->get_assets_bag()->add_{$this->get_setters_name()}(\$asset);")
|
||||
|
@@ -597,6 +597,20 @@ if (isset($post_data['post_text']))
|
||||
// Set some default variables
|
||||
$uninit = array('post_attachment' => 0, 'poster_id' => $user->data['user_id'], 'enable_magic_url' => 0, 'topic_status' => 0, 'topic_type' => POST_NORMAL, 'post_subject' => '', 'topic_title' => '', 'post_time' => 0, 'post_edit_reason' => '', 'notify_set' => 0);
|
||||
|
||||
/**
|
||||
* This event allows you to modify the default variables for post_data, and unset them in post_data if needed
|
||||
*
|
||||
* @event core.posting_modify_default_variables
|
||||
* @var array post_data Array with post data
|
||||
* @var array uninit Array with default vars to put into post_data, if they aren't there
|
||||
* @since 3.2.5-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'post_data',
|
||||
'uninit',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.posting_modify_default_variables', compact($vars)));
|
||||
|
||||
foreach ($uninit as $var_name => $default_value)
|
||||
{
|
||||
if (!isset($post_data[$var_name]))
|
||||
|
@@ -21,8 +21,8 @@
|
||||
# General Information about this style
|
||||
name = prosilver
|
||||
copyright = © phpBB Limited, 2007
|
||||
style_version = 3.2.4
|
||||
phpbb_version = 3.2.4
|
||||
style_version = 3.2.5
|
||||
phpbb_version = 3.2.5
|
||||
|
||||
# Defining a different template bitfield
|
||||
# template_bitfield = //g=
|
||||
|
@@ -77,7 +77,7 @@
|
||||
<dl>
|
||||
<dt><label for="message">{L_MESSAGE_BODY}{L_COLON}</label><br />
|
||||
<span>{L_EMAIL_BODY_EXPLAIN}</span></dt>
|
||||
<dd><textarea name="message" id="message" rows="15" cols="76" tabindex="4">{MESSAGE}</textarea></dd>
|
||||
<dd><textarea class="inputbox" name="message" id="message" rows="15" cols="76" tabindex="4">{MESSAGE}</textarea></dd>
|
||||
</dl>
|
||||
<!-- IF S_REGISTERED_USER -->
|
||||
<dl>
|
||||
|
@@ -285,6 +285,20 @@ $limit_days = array(0 => $user->lang['ALL_TOPICS'], 1 => $user->lang['1_DAY'], 7
|
||||
$sort_by_text = array('a' => $user->lang['AUTHOR'], 't' => $user->lang['POST_TIME'], 'r' => $user->lang['REPLIES'], 's' => $user->lang['SUBJECT'], 'v' => $user->lang['VIEWS']);
|
||||
$sort_by_sql = array('a' => 't.topic_first_poster_name', 't' => array('t.topic_last_post_time', 't.topic_last_post_id'), 'r' => (($auth->acl_get('m_approve', $forum_id)) ? 't.topic_posts_approved + t.topic_posts_unapproved + t.topic_posts_softdeleted' : 't.topic_posts_approved'), 's' => 'LOWER(t.topic_title)', 'v' => 't.topic_views');
|
||||
|
||||
/**
|
||||
* Modify the topic ordering if needed
|
||||
*
|
||||
* @event core.viewforum_modify_topic_ordering
|
||||
* @var array sort_by_text Topic ordering options
|
||||
* @var array sort_by_sql Topic orderings options SQL equivalent
|
||||
* @since 3.2.5-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'sort_by_text',
|
||||
'sort_by_sql',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_topic_ordering', compact($vars)));
|
||||
|
||||
$s_limit_days = $s_sort_key = $s_sort_dir = $u_sort_param = '';
|
||||
gen_sort_selects($limit_days, $sort_by_text, $sort_days, $sort_key, $sort_dir, $s_limit_days, $s_sort_key, $s_sort_dir, $u_sort_param, $default_sort_days, $default_sort_key, $default_sort_dir);
|
||||
|
||||
@@ -598,6 +612,18 @@ else
|
||||
$sql_start = $start;
|
||||
}
|
||||
|
||||
/**
|
||||
* Modify the topics sort ordering if needed
|
||||
*
|
||||
* @event core.viewforum_modify_sort_direction
|
||||
* @var string direction Topics sort order
|
||||
* @since 3.2.5-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'direction',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_sort_direction', compact($vars)));
|
||||
|
||||
if (is_array($sort_by_sql[$sort_key]))
|
||||
{
|
||||
$sql_sort_order = implode(' ' . $direction . ', ', $sort_by_sql[$sort_key]) . ' ' . $direction;
|
||||
|
@@ -263,6 +263,20 @@ if (!$topic_data)
|
||||
|
||||
$forum_id = (int) $topic_data['forum_id'];
|
||||
|
||||
/**
|
||||
* Modify the forum ID to handle the correct display of viewtopic if needed
|
||||
*
|
||||
* @event core.viewtopic_modify_forum_id
|
||||
* @var string forum_id forum ID
|
||||
* @var array topic_data array of topic's data
|
||||
* @since 3.2.5-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'forum_id',
|
||||
'topic_data',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_forum_id', compact($vars)));
|
||||
|
||||
// If the request is missing the f parameter, the forum id in the user session data is 0 at the moment.
|
||||
// Let's fix that now so that the user can't hide from the forum's Who Is Online list.
|
||||
$user->page['forum'] = $forum_id;
|
||||
|
Reference in New Issue
Block a user