mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
Merge remote-tracking branch 'upstream/3.2.x' into prep-release-3.2.2
This commit is contained in:
@@ -133,7 +133,7 @@ class style_update_p1 extends \phpbb\db\migration\migration
|
||||
}
|
||||
|
||||
// Remove old entries from styles table
|
||||
if (!sizeof($valid_styles))
|
||||
if (!count($valid_styles))
|
||||
{
|
||||
// No valid styles: remove everything and add prosilver
|
||||
$this->sql_query('DELETE FROM ' . STYLES_TABLE);
|
||||
|
@@ -93,13 +93,13 @@ class teampage extends \phpbb\db\migration\migration
|
||||
$teampage_entries[] = array(
|
||||
'group_id' => (int) $row['group_id'],
|
||||
'teampage_name' => '',
|
||||
'teampage_position' => sizeof($teampage_entries) + 1,
|
||||
'teampage_position' => count($teampage_entries) + 1,
|
||||
'teampage_parent' => 0,
|
||||
);
|
||||
}
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
if (sizeof($teampage_entries))
|
||||
if (count($teampage_entries))
|
||||
{
|
||||
$this->db->sql_multi_insert(TEAMPAGE_TABLE, $teampage_entries);
|
||||
}
|
||||
|
@@ -15,10 +15,17 @@ namespace phpbb\db\migration\data\v320;
|
||||
|
||||
class remove_outdated_media extends \phpbb\db\migration\migration
|
||||
{
|
||||
// Following constants were deprecated in 3.2
|
||||
// and moved from constants.php to compatibility_globals.php,
|
||||
// thus define them as class constants
|
||||
const ATTACHMENT_CATEGORY_WM = 2;
|
||||
const ATTACHMENT_CATEGORY_RM = 3;
|
||||
const ATTACHMENT_CATEGORY_QUICKTIME = 6;
|
||||
|
||||
protected $cat_id = array(
|
||||
ATTACHMENT_CATEGORY_WM,
|
||||
ATTACHMENT_CATEGORY_RM,
|
||||
ATTACHMENT_CATEGORY_QUICKTIME,
|
||||
self::ATTACHMENT_CATEGORY_WM,
|
||||
self::ATTACHMENT_CATEGORY_RM,
|
||||
self::ATTACHMENT_CATEGORY_QUICKTIME,
|
||||
);
|
||||
|
||||
static public function depends_on()
|
||||
|
Reference in New Issue
Block a user