1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16820] Move ATTACHMENT_CATEGORY_ constants to attachment namespace

PHPBB3-16820
This commit is contained in:
Marc Alexander
2021-10-10 17:52:42 +02:00
parent ddf8e8c9d1
commit b99cfd5caa
11 changed files with 86 additions and 37 deletions

View File

@@ -11,6 +11,8 @@
*
*/
use phpbb\attachment\attachment_category;
if (!defined('IN_PHPBB'))
{
exit;
@@ -1393,7 +1395,7 @@ function phpbb_attachment_category($cat_id)
switch ($cat_id)
{
case 1:
return ATTACHMENT_CATEGORY_IMAGE;
return attachment_category::IMAGE;
break;
case 2:
@@ -1401,7 +1403,7 @@ function phpbb_attachment_category($cat_id)
break;
}
return ATTACHMENT_CATEGORY_NONE;
return attachment_category::NONE;
}
/**