mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16345] Small improvements
PHPBB3-16346
This commit is contained in:
@@ -46,7 +46,7 @@ class local_url_bbcode extends \phpbb\db\migration\migration
|
||||
{
|
||||
if (function_exists('phpbb_require_updated'))
|
||||
{
|
||||
phpbb_require_updated('includes/acp/acp_bbcodes.' . $this->php_ext);
|
||||
phpbb_require_updated('includes/acp/acp_bbcodes.' . $this->php_ext, $this->phpbb_root_path);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -121,7 +121,7 @@ class release_3_0_4_rc1 extends \phpbb\db\migration\migration
|
||||
$sql_ary['field_show_profile'] = 1;
|
||||
}
|
||||
|
||||
$this->sql_query('UPDATE ' . $this->table_prefix . 'profile_fields SET ' . $this->db->sql_build_array('UPDATE', $sql_ary) . ' WHERE field_id = ' . $row['field_id'], $errored, $error_ary);
|
||||
$this->sql_query('UPDATE ' . $this->table_prefix . 'profile_fields SET ' . $this->db->sql_build_array('UPDATE', $sql_ary) . ' WHERE field_id = ' . $row['field_id']);
|
||||
}
|
||||
|
||||
$this->db->sql_freeresult($result);
|
||||
|
@@ -16,7 +16,7 @@ namespace phpbb\db\migration\data\v310;
|
||||
class avatar_types extends \phpbb\db\migration\migration
|
||||
{
|
||||
/**
|
||||
* @var avatar type map
|
||||
* @var array avatar type map
|
||||
*/
|
||||
protected $avatar_type_map = array(
|
||||
AVATAR_UPLOAD => 'avatar.driver.upload',
|
||||
|
@@ -54,6 +54,7 @@ class bot_update extends \phpbb\db\migration\migration
|
||||
if (!$group_row)
|
||||
{
|
||||
// default fallback, should never get here
|
||||
$group_row = [];
|
||||
$group_row['group_id'] = 6;
|
||||
$group_row['group_colour'] = '9E8DA7';
|
||||
}
|
||||
|
@@ -122,7 +122,7 @@ class notification_options_reconvert extends \phpbb\db\migration\migration
|
||||
* @param string $item_type
|
||||
* @param int $item_id
|
||||
* @param int $user_id
|
||||
* @param string $methods
|
||||
* @param array $methods
|
||||
*/
|
||||
protected function add_method_rows(\phpbb\db\sql_insert_buffer $insert_buffer, $item_type, $item_id, $user_id, array $methods)
|
||||
{
|
||||
|
@@ -83,7 +83,7 @@ class style_update extends \phpbb\db\migration\migration
|
||||
// Set prosilver to default style
|
||||
$this->config->set('default_style', $style_id);
|
||||
}
|
||||
else if (empty($styles) && empty($available_styles))
|
||||
else if (empty($styles) && empty($style_paths))
|
||||
{
|
||||
throw new \RuntimeException('No valid styles available');
|
||||
}
|
||||
|
Reference in New Issue
Block a user