[ticket/14972] Fix use of deprecated media attachment constants

PHPBB3-14972
This commit is contained in:
rxu 2017-05-07 02:10:37 +07:00 committed by Marc Alexander
parent 8c3808e9e7
commit dec06d10fe
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -15,10 +15,17 @@ namespace phpbb\db\migration\data\v320;
class remove_outdated_media extends \phpbb\db\migration\migration 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( protected $cat_id = array(
ATTACHMENT_CATEGORY_WM, self::ATTACHMENT_CATEGORY_WM,
ATTACHMENT_CATEGORY_RM, self::ATTACHMENT_CATEGORY_RM,
ATTACHMENT_CATEGORY_QUICKTIME, self::ATTACHMENT_CATEGORY_QUICKTIME,
); );
static public function depends_on() static public function depends_on()